tags:

views:

1388

answers:

2

It seems like the only way to do this is to pass the -i parameter in when you initially run less. Does anyone know of some secret hack to make something like this work

/something to search for/i

?

Edit: Wow how did I miss -i while less is running? Doh!

+8  A: 

You can also type command '-i' while less is running. It toggles case sensivity for searches.

Juha Syrjälä
+1  A: 

You can also set the environment variable LESS

I use LESS=-Ri, so that I can pump colorized output from grep into it, and maintain the ANSI colour sequences.

Another little used feature of less that I found is starting it with "+F" as an argument (or hitting shift-f while in less). This causes it to follow the file you've opened, in the same way that "tail -f " will. Very handy if you're watching log files from an application, and are likely to want to page back up (if it's generating 100's of lines of logging every second, for instance).

braklet