Skip to content

Commit 92cf199

Browse files
committed
wc
1 parent 21cc5cc commit 92cf199

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

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 -l -w -c ../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)