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 does uname command do?
why is the tar command used?
What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?
Who command in linux?
What is nslookup command?
Which command is used to see the online manual?
What does history command do in linux?
What is make command in linux?
What are the linux commands used in devops?
How do I use nslookup in linux?
What is $@ in makefile?
How do I check cpu usage?
Explain grep command.
Main configuration file and command used for NFS enabling exported directories and deamons?
What command do you type to find help about the command who?