A few days ago I discovered a nice python utility called pathmatch and decided, as python is not in most puppies, to write a new little utility that does the same thing. I didn't really port any of the python code since it was easier to write this thing from scratch, which is what I did. Here is the help message, which will give you an idea what bwhich does:
Code: Select all
Usage: bwhich [-t] keyword1 keyword2 ....
(shows all executables in your $PATH that contain keyword[s])
-t means terse (shows only names of executables without full path)
-h shows this help
NB. The bwhich keyword[s] search is case insensitive.
Example: bwhich pic img
Result: /root/my-applications/bin/pshowpic
/usr/bin/gpic
/usr/bin/gpick
/usr/bin/imgcmp
/usr/bin/imginfo
/usr/bin/pic
/usr/bin/pic2graph
/usr/bin/piconv
/usr/bin/vapicheck
/usr/local/bin/picpuz
/usr/local/bin/picscale
/usr/local/bin/Pictureviewer
Author: vovchik, June 2011, Puppy Linux Forum (murga-linux.com/puppy)
License: GPL
Version: 0.1a (check out BaCon at www.basic-converter.org)
With kind regards,
vovchik