On Tue Aug 25 1998, Tim wrote:

> > > while [ -f "$file" ]; do
> > >         counter=$(($counter+1))
> >
> > counter=`expr $counter + 1`
> Cool.....the other works, but I like this better.  :-)

counter=$[$counter +1]

(Hmm, not sure if this will work with #!/bin/sh script, even if /bin/sh is
a symlink to /bin/bash, you'll have to check).

Isn't shell scripting fun? :)

Cheers
Tony

Reply via email to