Skip to content

Commit 060d1e9

Browse files
committed
Use jq to print all names in the object
1 parent 6b18014 commit 060d1e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jq/script-04.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, one per line.
77
# Your output should contain 6 lines, each with just one word on it.
88
# Your output should not contain any quote characters.
9+
10+
jq -r '.[].name' scores.json

0 commit comments

Comments
 (0)