#!/bin/rc j=0 for (i in xx*) { echo $i ppmtobmp -windows $i > cursor$j.bmp j=`{echo $j+1 | bc} }