Skip to content

Commit 554d1cd

Browse files
committed
Edit grep and cat files
1 parent 05c4f1d commit 554d1cd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ set -euo pipefail
1111
# It looked delicious.
1212
# I was tempted to take a bite of it.
1313
# But this seemed like a bad idea...
14-
cat ../helper-files/helper-1.txt ../helper-files/helper-2.txt ../helper-files/helper-3.txt
14+
15+
16+
17+
# cat ../helper-files/helper-1.txt ../helper-files/helper-2.txt ../helper-files/helper-3.txt
18+
cat ../helper-files/*

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

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

55
# TODO: Write a command to output the number of lines in dialogue.txt that contain the word Doctor (regardless of case).
66
# The output should be exactly the number 9.
7-
grep -i 'Doctor' dialogue.txt | wc -l
7+
8+
9+
# grep -i 'Doctor' dialogue.txt | wc -l
10+
11+
grep -ic 'Doctor' dialogue.txt

0 commit comments

Comments
 (0)