Last active
February 25, 2021 09:34
-
-
Save johnniehard/454620a55a8e76182536355fadf53b7c to your computer and use it in GitHub Desktop.
Get strings longer than x with jq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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