: run this script through /bin/sh : '$Id: bootmhn.findit,v 1.2 1992/11/02 21:58:59 jromine Exp $' if [ -z "$1" -o -z "$2" ]; then echo "usage: bootmhn.findit program library" 1>&2 exit 1 fi PGM= DIR= oIFS="$IFS" IFS=":" for A in $PATH $2 /usr/demo/SOUND; do if [ "$A" = "." ]; then continue fi if [ -f "$A/$1" ]; then if [ "$A" = "/usr/local/bin" ]; then PGM="$1" DIR="" else PGM="$A/$1" DIR="$A/" fi echo "$PGM" exit 0 fi done IFS="$oIFS"