compgen -c [$beginningCharacters]This is useful in cases where you need to programmatically see what executables are available in $PATH. For instance, if you remember part of the name of an executable, but not what characters the executable begins with, you can pipe compgen -c out and grep for a string you know exists.
Nifty stuff.
0 comments:
Post a Comment