Regular Expression Case Sensitivity

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Dominic Busher
Date:  
Subject: Regular Expression Case Sensitivity
unsubscribe
--- Jim <> wrote:
> duuuuh....I knew that - but I can only remember it
> when my brain is
> functioning
>
> On Tuesday 04 December 2001 13:39, you wrote:
> > add an "a" to the command to see hidden files.
> What are hidden files you
> > ask, they are files that start with "."
> >
> > so to see hidden files type "ls -a" or "ls -la"
> >
> >
> > Cheers,
> >
> >
> > Davidm
> >
> > > -----Original Message-----
> > > From: Jim [mailto:farli@unitywave.com]
> > > Sent: Tuesday, December 04, 2001 1:09 PM
> > > To:
> > > Subject: Re: Regular Expression Case Sensitivity
> > >
> > >
> > > The 'rm' only asked me if i wanted to delete
> aaaa and bbbb,
> > > as it should.
> > > The really interesting thing that I found is
> that ls and ls-l
> > > never showed me
> > > the .abcd file.
> > >
> > > On Tuesday 04 December 2001 12:54, you wrote:
> > > > Try this in an empty directory and let me know
> if this is a bug or a
> > > > feature or an error on my part.
> > > >
> > > > Create several files of upper and lower case
> names:
> > > >
> > > >     touch aaaa
> > > >     touch AAAA
> > > >     touch bbbb
> > > >     touch BBBB
> > > >     touch 1234
> > > >     touch .abcd

> > > >
> > > > Now use a regular expression to delete all
> files starting
> > >
> > > with a lower case
> > >
> > > > letter:
> > > >
> > > >     rm [a-z]*

> > > >
> > > > When I was experimenting with this all of the
> files
> > >
> > > starting with *any*
> > >
> > > > alphabetic character were deleted. This was
> unexpected and
> > >
> > > I'm not sure if
> > >
> > > > I am misinterpreting the regular expression or
> if I am
> > >
> > > delusional. Let me
> > >
> > > > know what you get. FYI, I am using Red Hat
> Linux 7.2 so I would be
> > > > interested if it's just me.
> > > >
> > > > Brian
> > > >
> ________________________________________________
> > > > See
> http://PLUG.phoenix.az.us/navigator-mail.shtml if
> your
> > >
> > > mail doesn't
> > >
> > > > post to the list quickly and you use Netscape
> to write mail.
> > > >
> > > > PLUG-discuss mailing list -
>
> > > >
>

http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> > >
> > > ________________________________________________
> > > See
> http://PLUG.phoenix.az.us/navigator-mail.shtml if
> your
> > > mail doesn't post to the list quickly and you
> use Netscape to
> > > write mail.
> > >
> > > PLUG-discuss mailing list -
>
> > >
>

http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml
> if your mail doesn't post to the list quickly and
> you use Netscape to write mail.
>
> PLUG-discuss mailing list -
>
>

http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com