Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 00:12
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
bwhich
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: 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)


A pet and the source are attached.

With kind regards,
vovchik
bwhich.bac.tar.gz
Description 
gz

 Download 
Filename  bwhich.bac.tar.gz 
Filesize  1.74 KB 
Downloaded  161 Time(s) 
bwhich-0.1a.pet
Description 
pet

 Download 
Filename  bwhich-0.1a.pet 
Filesize  12.25 KB 
Downloaded  160 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0410s ][ Queries: 13 (0.0054s) ][ GZIP on ]