#!/bin/sh
if [ ! "$1" -a ! "$2" ]; then
echo "Usage: $0 output.schemas file1.schemas [file2.schemas [...]]"
exit 1
fi
OUTFILE="$1"
shift
echo '' > "$OUTFILE"
echo '' >> "$OUTFILE"
while [ "$1" ]; do
if [ -f "$1" ]; then
sed -e '/||g' -e 's|||g' \
-e 's|||g' -e 's|||g' \
"$1" >> "$OUTFILE"
fi
shift
done
echo '' >> "$OUTFILE"