Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
shell curl parse json collection
for json_val in $(curl -H "Content-Type: application/json; charset=utf-8" -H "Authorization: Bearer <secret>" https://thingthatreturnsjson | ./bin/ |
egrep '^\[\d*,"id"\]\s\d*' | cut -f 2); do echo $json_val; sleep 3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment