#!/bin/bash #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 #append the jpgs counting from 001-099 into 2x2 square jpeg with the numbers 001-099 montage montage/container/$VAR.jpg montage/altona/$VAR.jpg montage/hans/$VAR.jpg montage/platte/$VAR.jpg -geometry +2+2 montage_$VAR.jpg #add 1 to the number of the last runthrough let COUNT=COUNT+1 done