Skip to content

Commit 500f810

Browse files
committed
updated script1 and script7
1 parent 5cae952 commit 500f810

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output every line in dialogue.txt said by the Doctor.
66
# The output should contain 6 lines.
7-
grep "" dialogue.txt
7+
grep "^Doctor" dialogue.txt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ 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-
grep -c "^doctor:" *.txt
7+
grep -c "^Doctor:" *.txt

0 commit comments

Comments
 (0)