On Thu, Jun 08, 2006 at 09:06:22AM -0700, Gregory K. Ruiz-Ade wrote:
> 
> # Put grep's return code someplace safer than $?
> rc=${?}
> 
> if [ ${rc} -eq 0 ]; then
>     # we found what we wanted
>     # do X
> else
>     # we didn't find what we wanted
>     # do Y
> fi

This worked like a champ!  Thanks... :-)  And I learned a little
something!

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to