Skip to content

Instantly share code, notes, and snippets.

@rririanto
Last active March 27, 2022 14:43
Show Gist options
  • Save rririanto/c7c63fcc1fcfcf989279ff5b000e8c32 to your computer and use it in GitHub Desktop.
Save rririanto/c7c63fcc1fcfcf989279ff5b000e8c32 to your computer and use it in GitHub Desktop.
Using Jq on large json file (10GB), remove one key from json large file
jq -n --stream 'fromstream(inputs|select((length == 2 and .[0][1] == "_id")|not))' users_large.json > users.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment