Skip to content

Commit 9844783

Browse files
Boshra MahmoudiBoshra Mahmoudi
authored andcommitted
fix the errors
1 parent 0d520d4 commit 9844783

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎individual-shell-tools/awk/script-04.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -euo pipefail
66
# Your output should contain 3 lines, each with one word and one number on it.
77
# The first line should be "Ahmed 4".
88

9-
awk '$2 == "London" {print $1, $5}' scores-table.txt
9+
awk '$2 == "London" {print $1, $NF}' scores-table.txt

‎individual-shell-tools/grep/script-05.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 contains the string "cure", as well as the line before that line.
66
# The output should contain two pairs of two lines of text (with a separator between them).
77

8-
grep % grep -B 1 "cure" dialogue.txt
8+
grep -B 1 "cure" 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 % sed 's/i/I/' input.txt
9+
sed 's/i/I/' 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/^\([0-9][0-9]*\) \(.*\)$/\2 \1/' input.txt
12+
sed 's/, */, /g' input.txt

‎individual-shell-tools/wc/script-01.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 the number of words in the file helper-files/helper-3.txt.
66
# The output should include the number 19. The output should not include the number 92.
77

8-
wc % wc -w ../helper-files/helper-3.txt
8+
wc -w ../helper-files/helper-3.txt

0 commit comments

Comments
 (0)