what is the use of "grep" command?

Answer Posted / pavankumar

grep is used to matching a pattern in a file...
we can use regular expressions in conjuction with grep.
suppose for example if you want to find the all occurences of
pavan in a file, you can use...
grep pavan *
it searches all files in the current directory files and
returns all those files which contain pavan.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does find command return in unix?

606


Is ‘du’ a command? If so, what is its use?

641


How do you repeat a command in terminal?

602


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

618


What do know about tee command and its usage?

599






Who invented grep?

663


What is used to type command?

554


What are awk commands?

590


What is unix command line?

620


Using unix command how to display no of records in oracle?

620


What is the use of awk command in unix?

588


What do chgrp command do?

603


What are grep patterns?

583


What is the difference between cat command and more command?

607


What is the command to find hidden files in the current directory?

598