> > for i in `seq 0 10`;
> > do
> > SUM=`echo $SUM+${ARR[$i]}|bc`
> > done
>
> SUM=$(($SUM + ${ARR[$i]}))
>
i need 'bc' to work, cause i need float values. is there any other way to
have float values in shell variables.
parvez
--
Walk softly and carry a big stick. -- Theodore Roosevelt
_______________________________________________
Meeting on 6th 4pm at IIT Mumbai. See http://www.ilug-bom.org.in/meet/
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
- [ILUG-BOM] bc and bash scripting woes Parvez Lanewala
- Re: [ILUG-BOM] bc and bash scripting woes Philip S Tellis
- Re: [ILUG-BOM] bc and bash scripting woes Parvez Lanewala
- Re: [ILUG-BOM] bc and bash scripting woes Dinesh Shah

