[101112] in RedHat Linux List
RE: [OT] ls for Caps only
daemon@ATHENA.MIT.EDU (Lloyd Sumpter)
Tue Nov 24 17:31:59 1998
In-Reply-To: <199811241602380276.13A08C08@buddha>
Date: Tue, 24 Nov 1998 14:15:56 -0800 (PST)
From: Lloyd Sumpter <Lloyd.Sumpter@BCHydro.bc.ca>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On 24-Nov-98 Darren Greer wrote:
> 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/
>
Use square brackets:
ls $HOMEDIR/quick/* |grep [A-Z]
=======================================================================
Lloyd Sumpter E-MAIL: Lloyd.Sumpter@bchydro.bc.ca
Protection and Control Design or: lsumpter@portal.ca
BC Hydro, Vancouver, CANADA PHONE: (604) 528-3078
"organizing Pagans is like herding cats"
--
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.