Skip to content

Commit 4066d64

Browse files
committed
Fix failing shell tool exercises
1 parent 301d918 commit 4066d64

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

individual-shell-tools/awk/script-04.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ 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-
awk '/London/ {print $2, $NF}' scores-table.txt;
8+
awk '$2 == "London" {print $1, $NF}' scores-table.txt

individual-shell-tools/cat/script-02.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ set -euo pipefail
1212
# I was tempted to take a bite of it.
1313
# But this seemed like a bad idea...
1414

15-
cat ../helper-files/helper-1.txt, ../helper-files/helper-2.txt, ../helper-files/helper-3.txt
15+
cat ../helper-files/helper-1.txt ../helper-files/helper-2.txt ../helper-files/helper-3.txt

individual-shell-tools/grep/script-04.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output every line in dialogue.txt that does not contain the word "Hello" (regardless of case).
66
# The output should contain 10 lines.
7-
grep -iv "Hello" dialogue.txt | grep -v '^$'
7+
grep -iv "Hello" dialogue.txt | grep -v '^ $'

0 commit comments

Comments
 (0)