Skip to content

Commit 81e2072

Browse files
Updated grep script-05.sh
1 parent f02026e commit 81e2072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

55
# TODO: Write a command to output every line in dialogue.txt that contains the string "cure", as well as the line before that line.
6-
grep -iC 1 cure dialogue.txt
6+
grep -iB 1 cure dialogue.txt
77

88
# The output should contain two pairs of two lines of text (with a separator between them).

0 commit comments

Comments
 (0)