Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created April 11, 2019 15:08
Show Gist options
  • Save mcandre/69e146f9fd1b565fe5db20622c097a70 to your computer and use it in GitHub Desktop.
Save mcandre/69e146f9fd1b565fe5db20622c097a70 to your computer and use it in GitHub Desktop.
jq truncate rows
$ jq -s -r '.[:1000] | .[]' <in-file> > <out-file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment