Skip to content

Commit f4b0af2

Browse files
committed
Extract player names with total scores summed from all games
1 parent d7b1d9c commit f4b0af2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jq/script-09.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ set -euo pipefail
66
# TODO: Write a command to output just the names of each player along with the total scores from all of their games added together.
77
# Your output should contain 6 lines, each with one word and one number on it.
88
# The first line should be "Ahmed 15" with no quotes.
9+
jq -r '.[] | "\(.name) \(.scores | add)"' scores.json

0 commit comments

Comments
 (0)