Created
May 29, 2020 13:58
-
-
Save leblancfg/a80f04aab9ccc44a8c0016ddc5dc71ee to your computer and use it in GitHub Desktop.
Get PostgreSQL password from json with URL connection string - one-liner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat FILENAME.json | jq '.KEY' | sed 's/.*postgres:\(.*\)@.*/\1/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment