home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / usr / bin / explain < prev    next >
Encoding:
Text File  |  1992-07-21  |  153 b   |  10 lines

  1. #! /bin/sh
  2. D=/usr/lib/explain.d
  3. while    echo 'phrase?'
  4.     read x
  5. do
  6.     case $x in
  7.     [a-z]*)    sed -n /"$x"'.*    /s/\(.*\)    \(.*\)/use "\2" for "\1"/p' $D
  8.     esac
  9. done
  10.