#!/bin/sh
grep $type $1 1>/dev/null 2>/dev/null
if test "*$?*" = "*0*"
then
sed -n "/$type|/,/:$/{
/|/s/^./ &/
s/:\\\/:/
s/:/\\
/g
p
}
" $1 | sort -fu > test.out
quoter < test.out > $type.out
exit $?
fi
exit 1
