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 does #!/ Bin sh do?
Which command should you use to find the remaining disk space in unix server?
what will be the output of ls ~/..
What are bash commands?
How do you change file permissions?
distinguish between user mode and kernel mode?
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
4 Answers Infosys, Nikhil Construction,
What is the command to find hidden files in the current directory?
What Is the command to change a file's creation time. means one file is created at the time 15:19 then time should br changed to 14:14
How can we use grep command in unix?
Name the general commands in using unix os for a beginner?
How do you find out all processes that are currently running in UNIX OS?