Last active
February 8, 2022 09:29
-
-
Save seahrh/8ba74648dcb5407fefc3d8398a26d524 to your computer and use it in GitHub Desktop.
jq examples
This file contains 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 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