On Wed, 2005-02-02 at 11:13 -0800, Jeremy C. Reed wrote:
> 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.
---
the answer was '\$'
yes - I knew that cat wasn't needed - it was just repetition that had me
using it...
i.e.
cat users
cat users|grep etc...
In fact, the final solution - in case anyone wants it...
getent passwd | awk -F: '$3 > 499 && $3 < 10000 { print $1 }' \
| grep -v '\$' > /root/scripts/users
for those that file these thingy's away for a rainy day
Thanks all
Craig
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss