Skip to content

Commit 60a5314

Browse files
committed
use ls-grep to output 10 files inside sample-files direcotry which starts with a upper case
1 parent 1c0343b commit 60a5314

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

shell-pipelines/ls-grep/script-02.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.
66
# Your output should contain 10 files.
7+
ls sample-files | grep '^[A-Z]'

0 commit comments

Comments
 (0)