Created
December 12, 2015 19:52
-
-
Save opqdonut/5ecf25762a9c3a24e564 to your computer and use it in GitHub Desktop.
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
| #!/bin/sh | |
| jq -c 'recurse(.[]? | select((type!="object") or (to_entries | map(.value) | contains(["red"]) | not))) | numbers' < input.12 | awk '{ans += $1} END { print ans }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment