Skip to content

Commit 68a1b49

Browse files
committed
ls-grep used to output 7 files inside sample-files which starts with upper case but don't contain any other upper case letter in its name
1 parent 60a5314 commit 68a1b49

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

shell-pipelines/ls-grep/script-03.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 names of the 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 contain 7 files.
7+
ls sample-files | grep '^[A-Z][^A-Z]*$'

0 commit comments

Comments
 (0)