Answer Posted / bharath
grep command is used to search a string or a keyword in a
file.
syntax:
grep 'keyword' file
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Why is it called a shebang?
What does this command do,"$more readme.txt“?
What is the comma to display different lines that are found when compare two files?
What is ctrl d?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is the pipe command?
What is awk command used for?
How do I search for a file in unix command?
How does the system know where one command ends and another begins?
Explain command to show the space allocation of files?
Which command is used to find whether the system is 32 bit or 64 bit?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the command to compare two files in unix?
What is the use of the tee command?
What does this command do? Cat food 1 > kitty