#!/bin/sh
dirs=`echo $PATH | sed 's/:/ /g'`
for d in $dirs
do
    if test -x $d/$1
    then
	echo $d/$1
	exit 0
    fi
done
exit 1
