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 comm do and how to use it?
What would be the result of issuing the command cat phonenos?
What is the programming language for linux?
How can we increase disk read performance in single command in Linux operating system?
Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?
How do you run command every time a file is modified?
Why is it called bash?
You wish to restore the file memo.ben which was backed up in the tarfile mybackup.tar. What command should you type?
What is unix finger command?
What is the default number of shell commands saved in the history list of .cshrc file?
What are linux commands?
How do you kill a process in linux?
What is nbtstat command?
Which command is used to clear the screen?
Explain the ‘ls’ command in linux