linux less cannot search case insensitive using -i

Viewed 13

enter image description here

if search using ?cm02csdate -i fail

enter image description here

but if search using ?CM02CSDATE, it can be found enter image description here

enter image description here

I search the man page, it also said using -i to search by case insensitive, as following shown enter image description here

So why it fail when I use ?cm02csdate -i

1 Answers

The -i flag should be given to less. I.e. less -i <filename> or some_program | less -i.

Related