Re: more stupid shell tricks

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Címzett: plug-discuss
Tárgy: Re: more stupid shell tricks
On Wed, 2 Feb 2005, Craig White wrote:

> 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$


You are using the wrong slash. Use backslash.

Or use fgrep -v (or grep -F -v).

Also cat is not needed.

Jeremy C. Reed

                 technical support & remote administration
                http://www.pugetsoundtechnology.com/


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