Skip to content

Commit 0410bb2

Browse files
committed
Fix count number of attempts per player
1 parent e535a3f commit 0410bb2

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
@@ -3,5 +3,6 @@
33
set -euo pipefail
44

55
# TODO: Write a command to output just the names of each player along with the number of times they've played the game.
6+
awk '{print $1, NF-2}' scores-table.txt
67
# Your output should contain 6 lines, each with one word and one number on it.
78
# The first line should be "Ahmed 3".

0 commit comments

Comments
 (0)