Skip to content

Commit 1e623c9

Browse files
committed
fix sum all first scores
1 parent 0410bb2 commit 1e623c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

individual-shell-tools/awk/script-06-stretch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ set -euo pipefail
55
# NOTE: This is a stretch exercise - it is optional.
66

77
# TODO: Write a command to output the total of adding together all players' first scores.
8+
awk '{sum += $3} END {print sum}' scores-table.txt
89
# Your output should be exactly the number 54.

0 commit comments

Comments
 (0)