Skip to content

Instantly share code, notes, and snippets.

@leblancfg
Created May 29, 2020 13:58
Show Gist options
  • Save leblancfg/a80f04aab9ccc44a8c0016ddc5dc71ee to your computer and use it in GitHub Desktop.
Save leblancfg/a80f04aab9ccc44a8c0016ddc5dc71ee to your computer and use it in GitHub Desktop.
Get PostgreSQL password from json with URL connection string - one-liner
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