
# If you don't have 'bash' on your system, change the above to match a shell 
# you do have that has a similar command capability.

list="`echo $PATH | sed -e 's/:/ /g'`"

for i in $list
do
	if [ -x $i/$1 ]
	then
		echo $i/$1
		exit
	fi
done
