Skip to content

Commit 301d918

Browse files
committed
Fix failing individual shell tools exercises
1 parent 2e15eb5 commit 301d918

3 files changed

Lines changed: 4 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
@@ -4,4 +4,4 @@ set -euo pipefail
44

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.
7-
grep -iv "Hello" dialogue.txt
7+
grep -iv "Hello" dialogue.txt | grep -v '^$'

‎individual-shell-tools/ls/script-01.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ fi
1313

1414
# TODO: Write a command to list the files and folders in this directory.
1515
# The output should be a list of names including child-directory, script-01.sh, script-02.sh, and more.
16-
ls ls
16+
ls

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ set -euo pipefail
88
# The output should contain 11 lines.
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.".
11-
sed 's/,/, /g' input.txt
11+
12+
sed 's/, */, /g' input.txt

0 commit comments

Comments
 (0)