File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
individual-shell-tools/awk Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ set -euo pipefail
55# TODO: Write a command to output just the names of each player in London along with the score from their last attempt.
66# Your output should contain 3 lines, each with one word and one number on it.
77# The first line should be "Ahmed 4".
8+
9+ awk ' $2=="London" {print $1 , $NF}' scores-table.txt
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ 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+
9+ awk ' {print $1, NF - 2}' scores-table.txt
You can’t perform that action at this time.
0 commit comments