: Use /bin/sh

# This is a pipe that expands the norsk dictionary in phone directory
# order suitable for /usr/dict/words.  The ~Z-flag should be removed,
# since the generated words is only valid in compound words.

#  Usage example : cat norsk.sml | expand.sh > /usr/dict/words

sed -e "s/\(\/.*\)[Z_]\(.*\)$/\1\2/" | ispell -d norsk -e | sed -e "s/ /\\
/g" | sort -i | uniq
