[101148] in RedHat Linux List
Re: [OT] ls for Caps only
daemon@ATHENA.MIT.EDU (Fred Smith)
Tue Nov 24 21:41:57 1998
Date: Tue, 24 Nov 1998 19:01:18 -0500
From: Fred Smith <fredex@fcshome.stoneham.ma.us>
To: redhat-list@redhat.com
Mail-Followup-To: redhat-list@redhat.com
In-Reply-To: <199811242343.PAA24799@glacier.jpl.nasa.gov>; from Rick Forrester on Tue, Nov 24, 1998 at 03:43:56PM -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Tue, Nov 24, 1998 at 03:43:56PM -0800, Rick Forrester wrote:
>
> 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]'
>
And something similar, if not identical:
ls -d *[A-Z]*
Fred
--
---- Fred Smith -- fredex@fcshome.stoneham.ma.us ----------------------------
I can do all things through Christ
who strengthens me.
------------------------------ Philippians 4:13 -------------------------------
--
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.