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 |
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)?
hi i have directories within the directory. Now i want to copy the directory along with all directories included in it to one location by using copy command? what is the command
How to copy multiple files and directories into some other directory?
What is the use of sed command in unix?
How do you grep a case insensitive?
How are UNIX file permissions represented?
what is ls -ltd?
What is Unix, and how does it differ from other operating systems?
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
what is the use of nice command?
What is the functions of zambie process?
what is the cmd to display the last exit status in UNIX?