Skip to content

Instantly share code, notes, and snippets.

@seahrh
Last active February 8, 2022 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seahrh/8ba74648dcb5407fefc3d8398a26d524 to your computer and use it in GitHub Desktop.
Save seahrh/8ba74648dcb5407fefc3d8398a26d524 to your computer and use it in GitHub Desktop.
jq examples
cat input/squad20/dev-v2.0.json | jq '.data[].paragraphs[].qas[] | select(.id=="5ad24ce8d7d075001a428c0e")' -C | less -r
cat input/squad20/dev-v2.0.json | jq ".data[].title" -C | less -r
cat input/squad20/dev-v2.0.json | jq ".data[].paragraphs[].qas[].id" -C | less -r
cat input/squad20/dev-v2.0.json | jq ".data[].paragraphs[].qas[].id" -C | grep -ni 'needle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment