bwhich

Miscellaneous tools
Post Reply
Message
Author
User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

bwhich

#1 Post by vovchik »

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: 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)
A pet and the source are attached.

With kind regards,
vovchik
Attachments
bwhich.bac.tar.gz
(1.74 KiB) Downloaded 402 times
bwhich-0.1a.pet
(12.25 KiB) Downloaded 409 times

Post Reply