Re: simple if statement

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



On Fri, Feb 27, 2009 at 11:14:01AM +0000, Tom Brown wrote:
> 
> 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 [ "${remaining}" != "" ] ; then
		kill -9 ${remaining}
	fi





						John

-- 
"I'm sorry but our engineers do not have phones."
As stated by a Network Solutions Customer Service representative when asked to
be put through to an engineer.

"My other computer is your windows box."
                                     Ralf Hildebrandt
<sxem> trying to play sturgeon while it's under attack is apparently not fun.

Attachment: pgpsqwj50LI6g.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