Skip to content

Commit a3315af

Browse files
committed
code update for grep folder
1 parent c3990b0 commit a3315af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ 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+
#grep -i 'Doctor' dialogue.txt | wc -l
8+
grep -i -c 'Doctor' dialogue.txt

0 commit comments

Comments
 (0)