#!/bin/sh DIR=. if [ "x$1" != "x" ] then DIR="$1" fi OLD=`pwd` cd $DIR echo "" for I in `find . -type f -name '*.xml' -mindepth 2 | sort -t/ -k3 | xargs` do echo "" done echo "" cd $OLD