Re: simple if statement

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



> <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

_______________________________________________
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