Skip to content

Commit bf5a136

Browse files
committed
errors are fixed
1 parent 4be10dc commit bf5a136

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -euo pipefail
66
# Your output should contain 3 lines, each with one word and one number on it.
77
# The first line should be "Ahmed 4".
88

9-
awk '$2=="London" {print $1, $5}' scores-table.txt
9+
awk '$2=="London" {print $1, $NF}' scores-table.txt

individual-shell-tools/cat/script-01.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 the contents of the helper-1.txt file inside the helper-files directory to the terminal.
66
# The output of this command should be "Once upon a time...".
77

8-
cat helper-files/helper-1.txt
8+
cat ../helper-files/helper-1.txt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ set -euo pipefail
1313
# But this seemed like a bad idea...
1414

1515

16-
cat helper-files/*
16+
cat ../helper-files/*

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

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

13-
cat -n helper-files/helper-3.txt
13+
cat -n ../helper-files/helper-3.txt

individual-shell-tools/grep/script-06.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 the name of every `.txt` file in this directory which contains a line of dialogue said by the Doctor.
66
# The output should contain two filenames.
77

8-
grep -li 'Doctor' *.txt
8+
grep -l '^Doctor:' *.txt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -euo pipefail
66
# The output should show that dialogue.txt contains 6 lines, dialogue-2.txt contains 2, and dialogue-3.txt contains 0.
77

88

9-
grep -ic 'Doctor' *.txt
9+
grep -c '^Doctor:' *.txt

individual-shell-tools/wc/script-01.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 the number of words in the file helper-files/helper-3.txt.
66
# The output should include the number 19. The output should not include the number 92.
77

8-
wc -w helper-files/helper-3.txt
8+
wc -w ../helper-files/helper-3.txt

individual-shell-tools/wc/script-02.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 the number of lines in the file helper-files/helper-3.txt.
66
# The output should include the number 3. The output should not include the number 19.
77

8-
wc -l helper-files/helper-3.txt
8+
wc -l ../helper-files/helper-3.txt

individual-shell-tools/wc/script-03.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ set -euo pipefail
1010
# 5 30 151 total
1111

1212

13-
wc helper-files/*
13+
wc ../helper-files/*
1414

0 commit comments

Comments
 (0)