do you mean anything that has uppercase or has all uppercase?
here's a method using grep.. i know you can also do this in sed or do file globbing that uses regular expression in bash.
has uppercase: 'ls | grep "[A-Z]"'
has all uppercase (no lowercase method): 'ls | grep -v "[a-z]"'
has all uppercase (everything should be except periods of course): 'ls | grep "^[A-Z]\+\.\{0,1\}[A-Z]*$"'
Last edited by konsolebox; 03-12-2008 at 04:21 AM.
|