[CentOS] simple if statement

Per Qvindesland per at norhex.com
Fri Feb 27 11:34:14 UTC 2009


I normally do it this way:
if (length($remaining) == 0) { &do_exit; }

Per

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





More information about the CentOS mailing list