1#!/bin/sh -
2#
3# Copyright (c) 1988 The Regents of the University of California.
4# All rights reserved.
5#
6# %sccs.include.proprietary.sh%
7#
8#	@(#)suggest.sh	5.3 (Berkeley) 04/17/91
9#
10
11trap 'rm $$; exit' 1 2 3 15
12D=/usr/share/dict/explain.d
13while echo "phrase?";read x
14do
15cat >$$ <<dn
16/$x.*	/s/\(.*\)	\(.*\)/use "\2" for "\1"/p
17dn
18case $x in
19[a-z]*)
20sed -n -f $$ $D; rm $$;;
21*) rm $$;;
22esac
23done
24