sw/whereis

10 lines
121 B
Plaintext
Raw Normal View History

2014-02-06 09:54:27 +00:00
#!/bin/sh
[ -z "$1" ] && exit 1
IFS=:
for a in $PATH ; do
if [ -e "$a/$1" ]; then
echo "$a/$1"
break
fi
done