[CentOS] simple if statement

William L. Maltby CentOS4Bill at triad.rr.com
Fri Feb 27 12:08:16 UTC 2009


> <snip>

> # Initialize remaing list and then
> set "$remaining" # If empty $1 is null
> while [ -n "$1" ] ; do
>    echo "$1"  # remove this
>    kill -9 $

s/\$/$1/ # OOPS!

>    shift
> done
> 
> $ remaining="9997 9998 9999"
> $ while [ -n "$1" ] ; do
> >    echo "$1"
> >    shift
> > done
> 9997 9998 9999
> 
> > 
> > thanks?
> > <snip sig stuff>
> 
> HTH

-- 
Bill




More information about the CentOS mailing list