File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments