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 |
How do I run a shell script?
How do you clear the screen in linux?
script is like x=10; y=20; [$x-ne$y]; echo $ please give me output.
What is sudo bash command?
You want to verify which lines in the file kickoff contain ‘bob’. Which of the following commands will accomplish this?
You issue the command head * what would the resulting output be?
What is in mkdir command?
What is cpu core in linux?
What is the difference between locating and locate command?
What does in makefile do?
How do you check which file consuming more space in linux?
What is file and example?