Skip to content

Instantly share code, notes, and snippets.

@protrolium
Created August 13, 2022 00:10
Show Gist options
  • Save protrolium/240cb3de5beb5589d71ce9ef4b40fd9e to your computer and use it in GitHub Desktop.
Save protrolium/240cb3de5beb5589d71ce9ef4b40fd9e to your computer and use it in GitHub Desktop.
jq commands and syntax

Remove sections of a string, filtering out all that contain "RT"

cat tweets.json | jq '.[].text | select(contains("RT") | not)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment