Skip to content

Commit 45a8c1d

Browse files
committed
complete wc exercises
1 parent 001847f commit 45a8c1d

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

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
16+
ls ls

individual-shell-tools/wc/script-01.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -euo pipefail
44

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.
7+
wc -w ../helper-files/helper-3.txt

individual-shell-tools/wc/script-02.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output the number of lines in the file helper-files/helper-3.txt.
66
# The output should include the number 3. The output should not include the number 19.
7+
wc -l ../helper-files/helper-3.txt

individual-shell-tools/wc/script-03.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ set -euo pipefail
88
# 1 7 39 ../helper-files/helper-2.txt
99
# 3 19 92 ../helper-files/helper-3.txt
1010
# 5 30 151 total
11+
wc -l -w -c ../helper-files/*.txt

0 commit comments

Comments
 (0)