radare2/sys/whereis.sh

11 lines
130 B
Bash
Raw Normal View History

#!/bin/sh
[ -z "$1" ] && exit 1
2013-06-11 18:25:56 +08:00
export IFS=:
for a in $PATH ; do
if [ -x "$a/$1" ]; then
echo "$a/$1"
exit 0
fi
done
exit 1