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 the “echo” command do?

825


What do chmod, chown, chgrp commands do?

872


Which command is used to find whether the system is 32 bit or 64 bit?

810


How to display no of records in oracle using unix command?

786


What command will change your prompt to myprompt?

899






How does the system know where one command ends and another begins?

1839


What do know about tee command and its usage?

833


What does the command ' $who | sort –logfile > newfile' do?

1006


What is difference between grep and find command in unix?

820


What do chown command do?

771


How do I search a whole word in vim?

869


Can you explain a little bit about command substitution?

803


What is awk command used for?

774


What is grep short for?

729


What are filter commands in unix?

758