Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions individual-shell-tools/ls/script-01.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ if [[ "${script_dir}" != "$(pwd)" ]]; then
fi

# TODO: Write a command to list the files and folders in this directory.
ls
# The output should be a list of names including child-directory, script-01.sh, script-02.sh, and more.
1 change: 1 addition & 0 deletions individual-shell-tools/ls/script-02.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
set -euo pipefail

# TODO: Write a command which lists all of the files in the directory named child-directory.
ls child-directory
# The output should be a list of names: helper-1.txt, helper-2.txt, helper-3.txt.
1 change: 1 addition & 0 deletions individual-shell-tools/ls/script-03.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
set -euo pipefail

# TODO: Write a command which _recursively_ lists all of the files and folders in this directory _and_ all of the files inside those folders.
ls -R
# The output should be a list of names including: child-directory, script-01.sh, helper-1.txt (and more).
# The formatting of the output doesn't matter.
1 change: 1 addition & 0 deletions individual-shell-tools/ls/script-04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ echo "First exercise (sorted newest to oldest):"
echo "Second exercise (sorted oldest to newest):"

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