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 |
which command is used to stop a running process in unix?
how to check a file system type
What is the command to find maximum memory taking process on the server?
what does a process mean?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
what are the different commands used to create files?
What is in grep command?
How will you know who are the users logged in to the system before 15 minutes?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
What is unix command?
What is the use of egrep command in unix?
What does touch command do in unix?