Created
September 11, 2018 16:32
-
-
Save obradovic/1b317cb7d26f3dce7b411b790da2edce to your computer and use it in GitHub Desktop.
Sum GCP cost numbers from BigQuery json
This file contains 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 x.json | jq ".[] | .cost" | tr -d '"' | awk '{ total += $1 } END { print total }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment