Skip to content

Commit 1ef372c

Browse files
Cross checked to correct commands
1 parent 85765cd commit 1ef372c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
55
# TODO: Write a command to output every line in dialogue.txt that does not contain the word "Hello" (regardless of case).
66
# The output should contain 10 lines.
77

8-
grep -v -e "Hello" dialogue.txt
8+
grep -v -i "Hello" dialogue.txt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -euo pipefail
66
# The output should contain 11 lines.
77
# The first line of the output should be: "ThIs Is a sample fIle for experImentIng wIth sed.".
88

9-
sed 's/i/I/g' input.txt
9+
sed 's/i/I/g' input.txt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ set -euo pipefail
77
# So line 6 which currently reads "37 Alisha" should instead read "Alisha 37".
88
# The output should contain 11 lines.
99

10-
sed -E 's/^([0-9]+) (.*)$/\2 \1/' input.txt
10+
sed -e 's/^([0-9]+) (.*)$/\2 \1/' input.txt

0 commit comments

Comments
 (0)