Re: [SLUG] searching in "less"

From: David Wyde (david.wyde@gmail.com)
Date: Sat Feb 21 2009 - 15:05:51 EST


I think the following might work (with -I for --IGNORE-CASE):

less -I -p Pattern filename

On Sat, Feb 21, 2009 at 2:33 PM, Matthew Rogers <matt@runithard.com> wrote:

> Force it all to one case using the lc() function in perl maybe?
>
> <rant>
> Maybe I'm a perl fanboy, but usually when I want to do something in the
> shell I can do it with 5 lines of perl in a few seconds, vs. spending 20
> minutes researching the extended functions of all sorts of complex
> non-conforming "shell" programs.
> </rant>
>
> :-)
>
> --Matt
>
>
>
> Eben King wrote:
>
>> Is there any way to do a case-insensitive search in "less" other than
>> something like
>>
>> /[wW][oO][rR][dD]
>>
>> ?
>>
>> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:56:24 EDT