[101125] in RedHat Linux List
Re: [OT] ls for Caps only
daemon@ATHENA.MIT.EDU (Rick Forrester)
Tue Nov 24 18:45:28 1998
To: redhat-list@redhat.com
cc: Darren Greer <drgreer@qtiworld.com>
In-reply-to: Your message of "Tue, 24 Nov 1998 16:02:38 CST."
<199811241602380276.13A08C08@buddha>
Date: Tue, 24 Nov 1998 15:43:56 -0800
From: Rick Forrester <rickf@glacier.jpl.nasa.gov>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
drgreer@QTIWORLD.COM said:
> Howdy all.....I am trying to do a directory listing off all files
> that contain capital letters. I was under the impression that one
> could grep for the caps using a reg exp. Here is what I tried....
> ls $HOMEDIR/quick/* |grep /A-Z/
> But it does not seem to work. Please enlighten me.
try:
ls $HOMEDIR/quick/* | grep -E '[A-Z]'
Best
rickf
--
Rick Forrister <Richard.Forrister@jpl.nasa.gov>
You'll wonder why your data's lost
When you load your system with MicroSoft...
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.