what is the function of grep command?
Answers were Sorted based on User's Feedback
Answer / khemnath chauhan
grep command let us find the desire pattern in given
statements or from contents of file.
SYNOPSIS:
$grep <pettern to search> <file name>
this will find the particular pattern.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / 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 |
Answer / dhina
Grep will help us to display the particular information from
a file. For example.
grep apple fruitlist.txt
In this case, grep prints all lines containing 'apple' from
the file fruitlist.txt
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kavin
grep is used to filter or search for a pattern in the given
file.
for example
grep student class
will display only the lines that contains the word student
in it.
| Is This Answer Correct ? | 4 Yes | 1 No |
What is the use of sed command in unix?
What is the difference between cat command and more command?
What are the general commands in using unix os for a beginner?
What do know about tee command and its usage?
How to know a process is a zombie or orphan process?
What is grep r?
Which command is used to delete all files in the current directory and all its sub-directories?
what is the command to list all files in a directory, including the hidden files in UNIX ?
Where can I get the free download of Unix by Yeswant Kanetkar?
Which unix command to make a new directory?
what is the use of "test" command in unix?
If we want to see first 35 lines of a file which command we have to use?