Skip to content

Commit 9281110

Browse files
committed
Adjust the mistakes done in grep,cat and awk files.
1 parent f81c9ad commit 9281110

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

individual-shell-tools/grep/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 every line in dialogue.txt said by the Doctor.
66
# The output should contain 6 lines.
77

8-
grep "Doctor" dialogue.txt
8+
grep "^Doctor:" dialogue.txt

individual-shell-tools/grep/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 every line in dialogue.txt that contains the word Doctor (regardless of case).
66
# The output should contain 9 lines.
77

8-
grep -i "Doctor" dialogue.txt
8+
grep -i "^Doctor:" dialogue.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 individual-shell-tools/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 individual-shell-tools/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
@@ -9,4 +9,4 @@ set -euo pipefail
99
# 3 19 92 ../helper-files/helper-3.txt
1010
# 5 30 151 total
1111

12-
wc individual-shell-tools/helper-files/*
12+
wc ../helper-files/*

0 commit comments

Comments
 (0)