Skip to content

Commit e730dc4

Browse files
Updated ls-grep script-03.sh
1 parent a78ffb8 commit e730dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
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.
6-
ls sample-files/ | grep '^[A-Z][a-z]*$'
6+
ls sample-files/ | grep '^[A-Z][^A-Z]*$'
77

88
# Your output should contain 7 files.

0 commit comments

Comments
 (0)