home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / cmd / help < prev    next >
Encoding:
Text File  |  1996-11-25  |  278 b   |  17 lines

  1. #!/bin/sh
  2.  
  3. pager=${PAGER-"more -s"}
  4. subject=$1
  5. shift
  6. for i in $*
  7. do
  8.     file=`grep "^$subject    " $RHOME/help/$i/AnIndex`
  9.  
  10.     if [ ! "x$file" = x ]
  11.     then
  12.         file=$i/`echo $file | awk '{printf("%s", $2)}'`
  13.         exec $pager $RHOME/help/$file
  14.     fi
  15. done
  16. echo "sorry, no help for \"$subject\"."
  17.