#!/bin/bash # bash while loop #file number to start with COUNT=1 # total number of original files OTOTAL=50 # loop to call up the files to process. repeatedly calls up files numbered from 001 to $OTOTAL in accending order while [ $COUNT -le $OTOTAL ]; do VAR=`printf "%03d" $COUNT` echo $VAR let COUNT=COUNT+1 done