Skip to content

Instantly share code, notes, and snippets.

@jamiely
Created June 19, 2018 02:47
Show Gist options
  • Save jamiely/fd1b7406001a8e334d04f8be1e45f6bc to your computer and use it in GitHub Desktop.
Save jamiely/fd1b7406001a8e334d04f8be1e45f6bc to your computer and use it in GitHub Desktop.
When piping with jq, always include some pattern

How to pipe with jq. Make sure to include a pattern:

jq . < text.json | tee results.json

NOT

jq < text.json | tee results.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment