How do you grep a case insensitive?



How do you grep a case insensitive?..

Answer / Amrinder Kumar

To search for a pattern case-insensitively using grep, you can use the -i option. For example: 'grep -i <pattern> <filename>'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What is the use of egrep command in unix?

1 Answers  


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


Explain how to use grep command to list find the records of a file containing 10 different strings?

1 Answers  


How to view the hidden files in /etc directory?

10 Answers  


What do chown command do?

1 Answers  


what is the difference between Touch & cat command

21 Answers   QA,


Why is it called grep?

1 Answers  


in a growing log file how will you see the 1st 99 lines?

7 Answers  


in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?

6 Answers  


how will you login one server's shell prompt to an another server?

5 Answers   Cosmic Infotech, Perot Systems,


what are the differences between CUI and GUI interfaces?

52 Answers   College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


Categories