Skip to content

Commit 9adec13

Browse files
committed
fix exercises
1 parent cf6aa5e commit 9adec13

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ echo "First exercise (sorted newest to oldest):"
1515

1616
# TODO: Write a command which lists the files in the child-directory directory, one per line, sorted so that the most recently modified file is first.
1717
# The output should be a list of names in this order, one per line: helper-3.txt, helper-1.txt, helper-2.txt.
18-
ls -lt
18+
ls -lt ./child-directory/
1919

2020
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 -ltr
24+
ls -ltr ./child-directory/

‎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 -w ../helper-files/helper-3.txt | awk '{print $1}'
8+
wc -w ../helper-files/helper-3.txt

0 commit comments

Comments
 (0)