How do you do a case insensitive search using a pattern modifier using less?

前端 未结 5 980
清酒与你
清酒与你 2021-01-29 18:27

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



        
5条回答
  •  清歌不尽
    2021-01-29 19:16

    When using -i flag, be sure to enter the search string completely in lower case, because if any letter is upper case, then its an exact match.

    See also: the -I (capital i) flag of less(1) to change this behavior.

提交回复
热议问题