File: inspect

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 (16 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# This script inspects the explicit word list produced by the script
# rebuild and dumps the entries that could be treated as implicit
# ones according to the specified rule number into the file
# lexicon.dump.

exec <explicit.list >lexicon.dump

while read key desc; do
    if ../src/lexholder -b $key lexicon | grep -q "^$1[^0-9]"
    then echo $key $desc
    fi
done

exit 0