Skip to content

Instantly share code, notes, and snippets.

@johnniehard
Last active February 25, 2021 09:34
Show Gist options
  • Save johnniehard/454620a55a8e76182536355fadf53b7c to your computer and use it in GitHub Desktop.
Save johnniehard/454620a55a8e76182536355fadf53b7c to your computer and use it in GitHub Desktop.
Get strings longer than x with jq
cat popular_searches.json | jq '[.[] | {search} | map(select(length >= 4)) | .[0] | select(. != null)]' > popular_searches_len_gte_4.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment