Skip to content

Commit cfc4ec6

Browse files
committed
Complete grep script-07: count Doctor lines per file
1 parent f2979c6 commit cfc4ec6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

individual-shell-tools/grep/script-07.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, for each `.txt` file in this directory, how many lines of dialogue the Doctor has.
6+
grep -c "^Doctor:" dialogue.txt
67
# The output should show that dialogue.txt contains 6 lines, dialogue-2.txt contains 2, and dialogue-3.txt contains 0.

0 commit comments

Comments
 (0)