#!/bin/sh output=$1 filter=$2 testlist=$3 echo "" > $output echo "> $output echo " \"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd\"" >> $output echo "[" >> $output echo " " >> $output echo " " >> $output echo "]>" >> $output echo "" >> $output echo "Programs" >> $output echo "" >> $output for test in `cat $testlist | tr ' ' '\n' | grep "^$filter" | sort`; do echo "" >> $output; echo "$test" >> $output; done; echo "" >> $output echo "" >> $output