Re: more stupid shell tricks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric \"Shubes\"
Date:  
To: plug-discuss
Subject: Re: more stupid shell tricks
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:::
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>

backslash (\) is the escape character, not slash (/).
grep -v '\$'
works for me.
-- 
-Eric 'shubes'
"There is no such thing as the People;
  it is a collectivist myth.
  There are only individual citizens
  with individual wills
  and individual purposes."
-William E. Simon (1927-2000),
     Secretary of the Treasury (1974-1977)
  "A Time For Truth" (1978), pg. 237



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