Skip to content

Commit 01fc0d2

Browse files
committed
Calculate sum of all players' first scores from scores.json
1 parent f4b0af2 commit 01fc0d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jq/script-10.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ set -euo pipefail
55
# The input for this script is the scores.json file.
66
# TODO: Write a command to output the total of adding together all players' first scores.
77
# Your output should be exactly the number 54.
8+
jq '[.[].scores[0]] | add' scores.json

0 commit comments

Comments
 (0)