Skip to content

Commit 61d352f

Browse files
committed
Complete ls-grep script-04.sh exercise
1 parent ae4b404 commit 61d352f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shell-pipelines/ls-grep/script-04.sh

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

55
# TODO: Write a command to count the number of files in the sample-files directory whose name starts with an upper case letter and doesn't contain any other upper case letters.
66
# Your output should be the number 7.
7+
8+
s-grep % ls -1 sample-files | grep '^[A-Z][^A-Z]*$' | wc -l

0 commit comments

Comments
 (0)