Explain how you would find a specific string in a file.
Answer Posted / 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 View All Answers
What command do you type to find help about the command who?
What is phony in makefile?
What are whois tools?
How do you run command every time a file is modified?
How do I find the linux version?
How do I run a shell script?
You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose
What is the syntax of mkdir?
What is bash linux?
What is kill 9 in linux?
Who is unix command?
How use linux command line?
What is du command in linux?
Explain about gzip filename?
Explain the linux ‘cd’ command options along with the description?