Skip to content

Commit f5cee54

Browse files
committed
refactoring two files
1 parent 1f5f139 commit f5cee54

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ echo "Second exercise (sorted oldest to newest):"
2121

2222
# TODO: Write a command which does the same as above, but sorted in the opposite order (oldest first).
2323
# The output should be a list of names in this order, one per line: helper-2.txt, helper-1.txt, helper-3.txt.
24-
ls -1tr child-directory
24+
ls -1tr "${script_dir}/child-directory"

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

0 commit comments

Comments
 (0)