Re: more stupid shell tricks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: 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