Path: utzoo!mnetor!uunet!husc6!encore!sue From: sue@encore.UUCP (Sue LoVerso) Newsgroups: comp.unix.questions Subject: Re: Math functions in shell script? Message-ID: <2887@encore.UUCP> Date: 7 Apr 88 21:01:00 GMT References: <2653@juniper.UUCP> Sender: news@husc6.harvard.edu Reply-To: sue@encore.UUCP (Sue LoVerso) Distribution: na Organization: Encore Computer Corp, Marlboro, MA Lines: 14 In article <2653@juniper.UUCP> painter@juniper.UUCP (Tom Painter ) writes: > >I am having problems finding out how to do calculations in a shell script. >#somehow increment cnt and go through loop again > cnt=cnt + 1 ># ^^^^^^^^^^^ wrong language but message should be clear cnt=`expr $cnt + 1` Man expr(1) for more details. -- Susan J. LoVerso Encore Computer Corp. sue@multimax.arpa encore!sue