 : remove character table from "DESC" in order to get error messages from
: makedev
ed DESC > /dev/null << X
/charset/
.+1,\$d
w
q
X

: now run makedev, collect all error-messages, strip off the funny-character
: names, sort them, remove duplicate names, and print them in 16 columns

makedev DESC 2> out 
awk '/makedev/  { print $4 }' out \
| sort \
| uniq \
| awk 'BEGIN    { i=0 }  
		{
		  if ((i++ % 16) == 0) printf "\n" 
		  printf "%s ",$0
		} 
END             { printf "\n" }' > charset 
rm out
echo "funny character names:"
cat charset

: insert character table "charset" into "DESC"

ed DESC > /dev/null << X
/charset/
.r charset
w
q
X

rm charset
