Skip to content

Commit 973ce1f

Browse files
committed
updated ls-grep/script-03.sh
1 parent 00d4c2b commit 973ce1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
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.
77

8-
ls ./sample-files | grep '^[A-Z][a-z]*$'
8+
ls ./sample-files | grep '^[A-Z][^A-Z]*$'

0 commit comments

Comments
 (0)