Skip to content

Commit 6b78a4d

Browse files
committed
Add the correct path.
1 parent 94e8f3f commit 6b78a4d

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

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' individual-shell-tools/sed/input.txt

individual-shell-tools/sed/script-02.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
# Line 6 of the output should be " Alisha".
88

9-
sed 's/[0-9]//g' input.txt
9+
sed 's/[0-9]//g' individual-shell-tools/sed/input.txt

individual-shell-tools/sed/script-03.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 input.txt removing any line which contains a number.
66
# The output should contain 6 lines.
77

8-
sed '/[0-9]/d' input.txt
8+
sed '/[0-9]/d' individual-shell-tools/sed/input.txt

individual-shell-tools/sed/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 input.txt replacing every occurrence of the string "We'll" with "We will".
66
# The output should contain 11 lines.
77

8-
sed "We'll/We will/g"
8+
sed "s/We'll/We will/g" individual-shell-tools/sed/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 's/^\([0-9][0-9]*\) \(.*\)$/\2 \1/' input.txt
10+
sed 's/^\([0-9][0-9]*\) \(.*\)$/\2 \1/' individual-shell-tools/sed/input.txt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ set -euo pipefail
99
# Line 3 should be "It contains many lines, and there are some things you may want to do with each of them.".
1010
# Line 11 should be "We also should remember, when we go shopping, to get 4 items: oranges, cheese, bread, olives.".
1111

12-
sed 's/,\([^ ]\)/, \1/g' input.txt
12+
sed 's/,\([^ ]\)/, \1/g' individual-shell-tools/sed/input.txt

0 commit comments

Comments
 (0)