Re: more stupid shell tricks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bryan.ONeal@asu.edu
Date:  
To: plug-discuss
Subject: Re: more stupid shell tricks
This may be a stupid comment... but wouldn't grep interpret the $ from the
Dell 4600-c1$ that are being passed to it from "getent passwd | awk -F: '$3 >
499 {print $1 }'"
I am really not that experienced so I don't know...


On Wed, 2 Feb 2005, 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
>


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