Re: more stupid shell tricks

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Jeremy C. Reed
Datum:  
To: plug-discuss
Betreff: 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