sw/whereis
Roi Martin (@nibble_ds) f5f4910592 Initial commit
2014-02-06 10:54:27 +01:00

10 lines
121 B
Bash
Executable File

#!/bin/sh
[ -z "$1" ] && exit 1
IFS=:
for a in $PATH ; do
if [ -e "$a/$1" ]; then
echo "$a/$1"
break
fi
done