Skip to content

Commit b79b2a4

Browse files
committed
display each play name along with the number of times they've played the game
1 parent 9a69374 commit b79b2a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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 -F' ' '{print $1, NF-2}' scores-table.txt

0 commit comments

Comments
 (0)