Posted: Mon 13 Jun 2011, 08:09 Post subject:
bwhich Subject description: enhanced which command
Dear Puppians,
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:
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)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum