> > The following bash script worked for me: > > #/bin/bash > > i=0 > for file in `ls` > do > cp $file temp$i.gif > i=`expr $i + 1` ^^^^^^^^^^^^^^^ What about: i=$((i+1)) mentioned in "man bash" for aritmetic evaluations. I've never used the "expr" in scripts, must try it some time;-) // Emil