|
|
1.1 root 1: #!/bin/sh -
2: #
3: # Copyright (c) 1988 Regents of the University of California.
4: # All rights reserved. The Berkeley software License Agreement
5: # specifies the terms and conditions for redistribution.
6: #
7: # @(#)suggest.sh 5.2 (Berkeley) 5/11/89
8: #
9: trap 'rm $$; exit' 1 2 3 15
10: D=/usr/share/dict/explain.d
11: while echo "phrase?";read x
12: do
13: cat >$$ <<dn
14: /$x.* /s/\(.*\) \(.*\)/use "\2" for "\1"/p
15: dn
16: case $x in
17: [a-z]*)
18: sed -n -f $$ $D; rm $$;;
19: *) rm $$;;
20: esac
21: done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.