NetNeanderthal wrote:
> On 4/18/06, Han Boetes <[EMAIL PROTECTED]> wrote:
> > More ellegant is:
> >
> >   if ! ifconfig -a | grep -q tun0; then
>
> Yet another way to write this:  (Though not quite as readable?)
>
> ifconfig tun0 > /dev/null 2>&1 && ifconfig $_ destroy

I thought up the same construction after I posted the previous
message.  Though I didn't know that $_ means the last argument.
Nice trick, though not very readable indeed. :-)

The point is the same though: To check the return value instead of
the resulting text.



# Han

Reply via email to