1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/bin/sh # set -e echo "<!DOCTYPE section [" $(dirname $0)/../generate-pathconf-entities.sh echo "]>" DIR=. if [ "x$1" != "x" ]; then DIR="$1" fi OLD=$(pwd) cd $DIR echo "<section>" for I in $(find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs); do cat $I done echo "</section>" cd $OLD