Tuesday 13 October 2009

UNiX : less, more, vi(m), find, grep case insensitive

if using more, i have no idea.

if using less, just type -i (minus and i letter), and then /theword to start searching...

if using vi/vim, just type /\ctheword (/ is to start search, \c to ignore case sensitive for the whole word, theword is word that you wanna find) or just type :set ic (to ignore case)...

if using find, use find -iname, ex : find / -iname "*aaaa"
(only for find in some later version though)
workaround : find -name [Aa][Aa][Aa]

if using grep, type : grep -i.

------------------------------------------

No comments:

Post a Comment