#!/bin/bash # Must be run from output dir N_LOAD=/home/alanh/niagara-ws/niagara_3/brutus/load for basedir in * do cd $basedir for subdir in * do cd $subdir $N_LOAD *.xml cd .. done cd .. done