Skip to content

Instantly share code, notes, and snippets.

@vallamost
Created February 6, 2023 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vallamost/4b9b8ec0ec1d1509bf7aa5ece42a8a4f to your computer and use it in GitHub Desktop.
Save vallamost/4b9b8ec0ec1d1509bf7aa5ece42a8a4f to your computer and use it in GitHub Desktop.
Select an entire JSON object if a value in the array contains a specific string
jq -r '.[] | select(.project_url | contains("stringValueToFilterInproject_url"))' ./tmp/appid_analytic_data_raw.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment