Skip to content

Instantly share code, notes, and snippets.

@knudmoeller
Created December 21, 2021 13:59
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 knudmoeller/a4fb168e90e95ad901d02591112cf946 to your computer and use it in GitHub Desktop.
Save knudmoeller/a4fb168e90e95ad901d02591112cf946 to your computer and use it in GitHub Desktop.
Query multiple files with jq, slurp results into one large array
jq "{date: .dump_finished, count: .datasets | length}" sorted/*.json | jq -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment