Skip to content

Commit 47505c1

Browse files
committed
command to output just the names of each player along with the number of times they've played the game
1 parent de915eb commit 47505c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

individual-shell-tools/awk/script-05.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ set -euo pipefail
55
# TODO: Write a command to output just the names of each player along with the number of times they've played the game.
66
# Your output should contain 6 lines, each with one word and one number on it.
77
# The first line should be "Ahmed 3".
8+
awk '{print $1, NF-2}' scores-table.txt

0 commit comments

Comments
 (0)