Skip to content

Commit 5771075

Browse files
committed
Implement shell command to output names of files in sample files directory
1 parent 4813fff commit 5771075

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
@@ -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-
8+
ls sample-files | grep '^[A-Z][^A-Z]*$'

0 commit comments

Comments
 (0)