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 grep command in unix with examples?
what is the advaantage of each user having its own copy of the shell?
0 Answers BMC, CNS, DELL, Infosys,
what is the use of "grep" command?
what these two commands prints "echo test","cat test"?
Name the unix command to find how many days the server has been up.
can we use cat command as an editor ..???
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
what is the difference between npar and vpar in HP-UX?
How do you remove a crontab file?
Give the command for finding the current date.
What do chgrp command do?
What is the command to check ports active in UNIX?