We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12281ed commit 1e30a33Copy full SHA for 1e30a33
individual-shell-tools/grep/script-07.sh
@@ -4,3 +4,7 @@ set -euo pipefail
4
5
# TODO: Write a command to output, for each `.txt` file in this directory, how many lines of dialogue the Doctor has.
6
# 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