Re: How sum 2 arrays in ksh ?
am 29.12.2007 16:38:13 von Bobby.Higgins$ set -A a 1 2 3
$ set -A b 3 4 5
$ echo $(( a[0] + b[0] ))
4
news:b81e5800-64dd-40cb-868e-ed3c6fe08d9f@d27g2000prf.google groups.com...
> Hi:
> I need sum a[1] + b[1] to result "4", but why these commands doesn't
> do that ?
>
> # a="1 2 3"
> # b="3 4 5"
> # c=${a[1]}+${b[1]}
> # echo $c
> +
> #
>
> Thanks