Skip to content

Commit 58898fb

Browse files
committed
Completed task with wc commands
1 parent 7c69346 commit 58898fb

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

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

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

55
# TODO: Write a command to output the number of words in the file helper-files/helper-3.txt.
6+
wc -w helper-files/helper-3.txt
67
# The output should include the number 19. The output should not include the number 92.

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

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

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

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

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

55
# TODO: Write a command to output the number of lines, words, and characters in all of the files inside the helper-files directory.
6+
wc -lwm helper-files/*
67
# The output should be something like:
78
# 1 4 20 ../helper-files/helper-1.txt
89
# 1 7 39 ../helper-files/helper-2.txt

0 commit comments

Comments
 (0)