grep Getting started with grep Ignore case


Example

Given a file sample:

hello
Hello
HELLO_there

A normal grep for "hello" returns:

$ grep "hello" sample 
hello

Using -i allows to ignore case and match any "hello":

$ grep -i "hello" sample
hello
Hello
HELLO_there