home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / misc / show1.0.lha / show / man / man.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1994-12-06  |  417 b   |  16 lines

  1. #!/bin/sh
  2. before=`pwd`
  3. SHOW=/sys/utilities/show      # change the path if necessary
  4.                   # notice the path is stored in UN*X format
  5.                   # ie. SYS:utilities changes to /sys/utilities
  6. dirs='/gcc/man /groff/man /u/man' # add other man directories to search for here
  7.                   # directories are in UN*X format
  8. for k in $dirs; do
  9.    cd $k
  10.    i=`where $1.[012345678l]`
  11.    for j in $i; do
  12.       $SHOW $j
  13.    done
  14. done
  15. cd $before
  16.