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 will print your home directory on screen?
How do you find out all processes that are currently running in UNIX OS?
what is the command to print last 8 lines of any text file.
How do you know about running processes of a particular user?
what is the command to list files in a directory in UNIX?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
distinguish between user mode and kernel mode?
What command would users use to see what file one page at a time in UNIX?
what is shell?
what is exact definition of operating system?
What is the difference between cat command and more command?
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
4 Answers Infosys, Nikhil Construction,