Skip to content

Instantly share code, notes, and snippets.

@knudmoeller
Created December 21, 2021 13:59
Show Gist options
  • Select an option

  • Save knudmoeller/a4fb168e90e95ad901d02591112cf946 to your computer and use it in GitHub Desktop.

Select an option

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