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

In order to improve your system’s security you decide to implement shadow passwords. What command should you use?

0 Answers  


What is the command to see on which port which service is running?

0 Answers  


You issue the command head * what would the resulting output be?

0 Answers  


How do I check disk space in bash?

0 Answers  


in unix how to change old name to new name

7 Answers   Google,






What are the files to be used in the network installation of linux os?

4 Answers  


How does mkdir work in linux?

0 Answers  


What are the ms dos commands?

0 Answers  


How do I check my cpu speed?

0 Answers  


What is the use of ls command?

0 Answers  


What is ulimit command?

0 Answers  


How do makefiles work?

0 Answers  


Categories