Explain how you would find a specific string in a file.
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 |
what is the diff b/w ext2 and ext3?
How do you execute more than one command or program from a single command line entry?
How can we increase disk read performance in single command?
What is finger command in linux?
What is grep command?
How do you copy in linux terminal?
How do I permanently delete linux history?
When is it better to use the more command rather than cat command?
How to know linux os is 32 bit or 64 bit?
What is echo command in batch file?
How do I find command history in linux?
How often do you use grep command and how in Linux operating system?