Skip to content

Instantly share code, notes, and snippets.

@Bogdaan
Created April 28, 2021 16:05
Show Gist options
  • Save Bogdaan/1f2410553b4205dd357845300c0ece37 to your computer and use it in GitHub Desktop.
Save Bogdaan/1f2410553b4205dd357845300c0ece37 to your computer and use it in GitHub Desktop.
json-to-csv.sh
cat input.json | jq -c '.results[] | {name, party, cash: .cash_on_hand} | select(.cash | tonumber > 1000000)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment