We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f397b1d commit fe52cf1Copy full SHA for fe52cf1
2 files changed
individual-shell-tools/awk/script-04.sh
@@ -5,3 +5,5 @@ set -euo pipefail
5
# TODO: Write a command to output just the names of each player in London along with the score from their last attempt.
6
# Your output should contain 3 lines, each with one word and one number on it.
7
# The first line should be "Ahmed 4".
8
+
9
+awk '$2=="London" {print $1 , $NF}' scores-table.txt
individual-shell-tools/awk/script-05.sh
# TODO: Write a command to output just the names of each player along with the number of times they've played the game.
# Your output should contain 6 lines, each with one word and one number on it.
# The first line should be "Ahmed 3".
+awk ' {print $1, NF - 2}' scores-table.txt
0 commit comments