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