Re: simple if statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: pgpFZunn0xDLh.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux