in reply to find a forgotten shell command
You could get inspired by the already made (in perl) unix command from PPT project to produce more granulated output.perl -le '$cmd="ls";foreach (split(/:/,$ENV{"PATH"})){print grep(/$cmd +/, glob("$_/*"))} '
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: find a forgotten shell command
by Tommy (Chaplain) on Jan 07, 2004 at 03:13 UTC | |
by dominix (Deacon) on Jan 07, 2004 at 03:55 UTC | |
by Tommy (Chaplain) on Jan 07, 2004 at 22:54 UTC |