Skip to content

Instantly share code, notes, and snippets.

@jrobinsonc
Created January 3, 2020 16:41
Show Gist options
  • Save jrobinsonc/ac1b56bc40ae94cf6c7f8444fd75497b to your computer and use it in GitHub Desktop.
Save jrobinsonc/ac1b56bc40ae94cf6c7f8444fd75497b to your computer and use it in GitHub Desktop.
```shell
grep DB_NAME wp-config.php | awk -F "'" '{print $4}'
grep DB_USER wp-config.php | awk -F "'" '{print $4}'
grep DB_PASSWORD wp-config.php | awk -F "'" '{print $4}'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment