Subject: spell for NetBSD?
To: None <current-users@NetBSD.ORG>
From: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
List: current-users
Date: 12/02/1994 00:22:47
I know you cat just get ispell, but there is "look" but not "spell" in
NetBSD 1.0 standard issue.  As a result I threw this together:

#!/bin/sh

# crude spell program based on rough description of "the first draft
# of the spell program (roughly)" in "UNIX For Beginners -- Second Edition"
# by Brian W. Kernighan

TMPFL=/tmp/spell.$$
TMPFL2=/tmp/spell2.$$

if [ $# = 0 ]
then
        cat >$TMPFL
else
        cat $* >$TMPFL
fi

cat $TMPFL | \
tr "[   ]" "\012" | \
  tr -d "[:punct:]" | \
  sort -u > $TMPFL2

rm $TMPFL
comm -23 $TMPFL2 /usr/share/dict/words 1>&2
rm $TMPFL2