File: check

package info (click to toggle)
rulex 3.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,504 kB
  • sloc: ansic: 2,216; makefile: 131; lisp: 108; sh: 73
file content (15 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# This script reads dictionary in it's textual representation
# from the file lexicon.dump and outputs all the words that are
# correctly resolved by general rules into the file words.list.

exec <lexicon.dump >words.list

while read key desc; do
    if [ "$desc" = "`../src/lexholder -s $key -g lexicon`" ]
    then echo $key
    fi
done

exit 0