Charles Steinkuehler wrote:
> 
> > I would have done something like:
> >
> > if [ ps ax | grep -v grep | grep -q /usr/sbin/pppd ]
> 
> You can generally replace 'wc -l' with sed -n '$=', although you won't get a
> zero output if there are no lines.

I know about this construct, using two (2) sed's:

        sed -n = | sed -n '$p'

On Dachstein-CD:

        sed -n '$='

returns:

        sed: -e expression #1, char 1: Unknown command: ``?''


What do you think?

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to