On 01/12/2011 12:41 PM, Shakthi Kannan wrote:
Hi,

--- On Wed, Jan 12, 2011 at 12:30 PM, Nilesh Govindarajan
<[email protected]>  wrote:
|  cmdlist=$(echo /bin/${ch}* /usr/bin/${ch}* /sbin/${ch}* /usr/sbin/${ch}*)
\--

What about /usr/local/bin, /usr/local/sbin, and other bin* defined in
PATH? If you use the above, you should search for {ch}* in each
directory defined in PATH.

SK


whatis returns description for commands whose man pages exist. There's no guarantee that a man page will exist for commands other than standard directories.

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
VPS Hosting: http://www.itech7.com/a/vps

--
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to