[CentOS] simple if statement

Fri Feb 27 11:24:38 UTC 2009
Ralph Angenendt <ra+centos at br-online.de>

Tom Brown wrote:
> Hi
> 
> Below if $remaining is empty i want the if to finish - what is it i need 
> to put in SOMETHING?
> 
> if [ "$remaining" = "" ] ; then
>             SOMETHING ;
>         else
>             kill -9 $remaining
> fi

if [ "x${remaining}" != "x" ] ; then
              kill -9 ${remaining}
fi

Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20090227/4ba8e330/attachment-0005.sig>