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 |
How to identify whether a file is normal file or directory?
What is the comma to show the space allocation of files?
Does cp command overwrite files?
How do I run a bash script?
What is the size of time_t?
why metadb requires a seperate slice to create Solaris volume manager
What is command statement?
How does one process we can start an executable file? How to get the PID process, which we started?
Give two UNIX kernel parameters that effect an Oracle install
what is the difference between npar and vpar in HP-UX?
How to redirect standard error to a file?
How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?