Skip to content

Instantly share code, notes, and snippets.

@lordlinus
Created May 21, 2021 02:05
Show Gist options
  • Save lordlinus/fd7ba8e0a6c2a338907e9e4d13e45f90 to your computer and use it in GitHub Desktop.
Save lordlinus/fd7ba8e0a6c2a338907e9e4d13e45f90 to your computer and use it in GitHub Desktop.
# Get 2 values from the output
command | jq -r '[.Key1.key2,.Key1.key2]'
# Get last element from list
command | jq .key[-1].key2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment