Skip to content

Commit 9a21da8

Browse files
committed
wrote a script to output the ames and number of times they've played.
1 parent 9ceafa0 commit 9a21da8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jq/script-08.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ set -euo pipefail
66
# TODO: Write a command to output just the names of each player along with the number of times they've played the game.
77
# Your output should contain 6 lines, each with one word and one number on it.
88
# The first line should be "Ahmed 3" with no quotes.
9+
~/bin/jq -r '.[] | .name + " " + (.scores | length | tostring)' scores.json
10+

0 commit comments

Comments
 (0)