Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!atexnet!cvbnet!jsulliva From: jsulliva@cvbnet.UUCP (Jeff Sullivan, x4096 MS 4-2) Newsgroups: comp.unix.questions Subject: Bourne Shell (/bin/sh) counting? Message-ID: <124@cvbnetPrime.COM> Date: 15 Mar 90 23:58:06 GMT Sender: postnews@cvbnetPrime.COM Distribution: usa Lines: 20 References: What is the best way to provide a loop counter in a Bourne shell script? An example script is below, all it needs is the count incrementer. #!/bin/sh count=0 for i in 1 2 3 4 5 6 7 8 9 do # echo count=$count done I know there are other ways to accomplish the same thing, (such as the Korn shell), but I'd really like to know how to accomplish the above. Any help appreciated, -Jeff