[clug] finding things on the path

Mark Triggs mst at dishevelled.net
Wed Jan 12 01:29:17 GMT 2005

Kim Holburn <kim.holburn at anu.edu.au> writes:

> I was trying to find variants of ping on the path, like: fping and 
> hping.  Is there a tool for this?


> Anyone think of a better way?

I don't know about "better", but I'll suggest this anyway.  The compgen
bash builtin seems to do the trick:

  $ compgen -A command -X '!*ping*'


Mark Triggs
<mst at dishevelled.net>

More information about the linux mailing list