#!/bin/bash #file number to start with COUNT=1 # total number of original files OTOTAL=99 # loop to call up the files to process. calls up files numbered from 000-999 in accending order while [ $COUNT -le $OTOTAL ]; do if [ $COUNT -le $OTOTAL ]; then VAR=`printf "%03d" $COUNT` fi #puts one image over the other allowing the background to show through a mask composite platte/$VAR.png agfa/$VAR.png appended_deint/$VAR.png composite/$VAR.png echo $VAR #add 1 to the number of the last runthrough let COUNT=COUNT+1 done