Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcupt1!hpsal2!morrell From: morrell@hpsal2.HP.COM (Michael Morrell) Newsgroups: comp.unix.questions Subject: Re: Math functions in shell script? Message-ID: <2450006@hpsal2.HP.COM> Date: 7 Apr 88 21:00:59 GMT References: <2653@juniper.UUCP> Organization: HP System Architecture Lab, Cupertino Lines: 13 #somehow increment cnt and go through loop again cnt=cnt + 1 # ^^^^^^^^^^^ wrong language but message should be clear Tom Painter ut-emx!mybest!painter or uunet!bigtex!mybest!painter ---------- The proper syntax is to use expr: cnt=`expr $cnt + 1` Michael Morrell