wim (96B)
1 #!/bin/bash 2 3 # vi `which cmd` 4 5 P=$(which $*) 6 if [ -f "$P" ] 7 then 8 $EDITOR $P 9 else 10 echo $P 11 fi