what is the function of grep command?

Answers were Sorted based on User's Feedback



what is the function of grep command?..

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

what is the function of grep command?..

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

what is the function of grep command?..

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

what is the function of grep command?..

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

Post New Answer

More Unix Commands Interview Questions

What is grep command in unix with examples?

0 Answers  


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?

6 Answers   HCL,


what these two commands prints "echo test","cat test"?

6 Answers   TCS, Wipro,


Name the unix command to find how many days the server has been up.

0 Answers  






can we use cat command as an editor ..???

12 Answers   TCS,


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?

1 Answers   CSC,


How do you remove a crontab file?

6 Answers  


Give the command for finding the current date.

0 Answers  


What do chgrp command do?

0 Answers  


What is the command to check ports active in UNIX?

4 Answers   Accenture, IBM,


Categories