what is the use of "grep" command?

Answer Posted / vasu

To filter desire data.
Ex: In history, to see all the commands which have
particular word like cd
#history | grep cd

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the command for finding the current date.

583


Can you explain a little bit about command substitution?

612


What is the command to find maximum memory taking process on the server?

674


What is awk command used for?

602


What is {} in find command?

584






What is a command and examples?

589


Why is awk called awk?

581


What does this command do,"$more readme.txt“?

693


What is the nmap command?

585


How does pipe () work?

597


Explain how to use grep command to list find the records of a file containing 10 different strings?

596


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

639


What is $0 bash?

653


What is the difference between awk and grep?

561


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

633