Skip to content

Commit 1e30a33

Browse files
committed
grep commands commplete
1 parent 12281ed commit 1e30a33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ 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.
66
# The output should show that dialogue.txt contains 6 lines, dialogue-2.txt contains 2, and dialogue-3.txt contains 0.
7+
8+
for FILE in *.txt; do
9+
grep -c "^Doctor" $FILE
10+
done

0 commit comments

Comments
 (0)