kernel: scheduling fix for ARM
[minix.git] / commands / spell / spell.sh
blob7932b7a63fe01997764e23da785c379cf2d0a21e
1 #!/bin/sh
3 # spell 1.1 - show unknown words Author: Kees J. Bot
4 # 28 Apr 1995
6 dict=words
8 while getopts 'd:' opt
9 do
10 case $opt in
11 d) dict="$OPTARG"
13 ?) echo "Usage: spell [-d dict] [file ...]" >&2; exit 1
14 esac
15 done
16 shift `expr $OPTIND - 1`
18 case "$dict" in
19 */*) ;;
20 *) dict="/usr/lib/dict/$dict"
21 esac
24 if [ $# = 0 ]
25 then
26 prep
27 else
28 for file
30 prep "$file"
31 done
33 } | {
34 sort -u | comm -23 - "$dict"