[Gllug] Grepping tab-completions

Joel Bernstein joel at fysh.org
Mon Jun 13 10:21:35 UTC 2005


On Mon, Jun 13, 2005 at 10:41:44AM +0100, Russell Howe wrote:
> On Mon, Jun 13, 2005 at 10:25:00AM +0100, Tom Schutzer-Weissmann wrote:
> > Hi
> > 
> > I'm trying to remember the command that will let me use KDE io-slaves
> > from bash, and I think it starts with 'k' and contains 'exec'. So what
> > I'd like to do is pipe the names of all the commands available on my
> > path that begin with 'k' through grep, but haven't a clue how.
> > 
> > What's an easy way to search the path like this?
> 
> Under bash:
> 
> $ find ${PATH//:/ } -maxdepth 1 -type f -name 'k*exec'

or even just echo ${PATH//:/\/k* } if you're using bash. this doesn't
appear to work under zsh, possibly due to some weirdness in the way i've
set up globbing.

/joel
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list