Hint: You can also use
ls -a [A-Z]* instead of piping ls to grep.
To list only files, use this:
Code:
ls -lad [A-Z]* | grep -v ^d | awk '{print $9}'
You should see the man pages for ls, grep and awk for details, but in short, what the command does is:
-- listing all files but without expanding directories
-- grep all lines that don't start with 'd' (i.e. only files, symlinks, etc)
-- cut out the files column from the normal
ls -l listing