Skip to content

Commit 6d94970

Browse files
committed
Complete grep script-03: count matching lines
1 parent c25a3a6 commit 6d94970

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
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).
6+
grep -i "doctor" dialogue.txt | wc -l
67
# The output should be exactly the number 9.

0 commit comments

Comments
 (0)