Explain how you would find a specific string in a file.



Explain how you would find a specific string in a file...

Answer / hr@tgksolutions.com

You can use the 'grep' program to locate a certain string in a file. 'grep "search_string" filename', for instance, will look for'search_string' inside 'filename' and show the lines that match.

An ideal applicant will be aware of extra options like 'grep -i' for case-insensitive searches and 'grep -r' for recursive directory searches. This indicates a deeper comprehension of the proper use of 'grep'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

How can I only see the first 14 lines of a file?

5 Answers  


What does uname command do?

1 Answers  


how do you configure linux system as a router?

5 Answers   HP,


How to recover /etc/passwd file and /etc/shadow file?

1 Answers  


what is mean by system calls

4 Answers   Infotech,


How do I run a bash script in linux?

1 Answers  


What does touch do in linux?

1 Answers  


What is the ipconfig command for linux?

1 Answers  


What are linux commands?

1 Answers  


What does execute mean in linux?

1 Answers  


How do makefiles work?

1 Answers  


My linux machine is crashed due to root file system, I need not to bother about the root file system, but i need to take care of /etc, /usr, like that.,, can i recover these file systems?

2 Answers  


Categories