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