Re: more stupid shell tricks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: Re: more stupid shell tricks
On Wed, 2005-02-02 at 12:09 -0700, Eric "Shubes" wrote:
> Craig White wrote:
>
> > On Wed, 2005-02-02 at 11:52 -0700, Mike Garfias wrote:
> >
> >>Your shell is intrepreting $. Make it literal by wrapping it in single
> >>quotes.
> >>grep -v '$'
> >>
> >
> > ---
> > I've been trying all sorts of things...
> >
> > #cat users
> > marsha
> > 4600c-1$
> > # cat users|grep -v $
> > # cat users|grep -v '$'
> > # cat users|grep -v "$"
> > # cat users|grep -v /$
> > marsha
> > 4600c-1$
> > # cat users|grep -v '/$'
> > marsha
> > 4600c-1$
> >
> > :::sigh:::
> >
> backslash (\) is the escape character, not slash (/).
> grep -v '\$'
> works for me.

---
yes - that was the ticket single quotes and slash - I was getting
frustrated and actually knew that - but it was lost in the gears
somewhere

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss