search man pages

Heike C. Zimmerer nospam08q2 at gmx.net
Wed Apr 8 10:31:47 UTC 2009


Kaushal Shriyan <kaushalshriyan at gmail.com> writes:

> On Wed, Apr 8, 2009 at 3:31 PM, Heike C. Zimmerer <nospam08q2 at gmx.net>wrote:
>
>> Kaushal Shriyan <kaushalshriyan at gmail.com> writes:
>>
>> > how can i set ignore case while searching for any string uppercase or
>> > lowercase in man pages ?
>>
>> man less
>> /ignore-case

> I did man bash | less -i  and typed /PARAMETER EXPANSION it said "Pattern
> not found"

Of curse, at least for my Bash man page.  The above chapter is spelled
'Parameter Expansion' in mine.

The less man page clearly states that if you use '-i'. only search
strings which contain *no* upper case characters are case-insensitive.
But your search string does.  You need the other one of the two
ignore-case options ('-I').

Besides that, you don't need to pipe the man command's output into less
since less is already the default pager.  You can type options (like -I)
directly from within.

(Please don't Cc: me directly, I prefer reading list discussions on the
list and only there.)





More information about the ubuntu-users mailing list