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

Is it inbetween or in between?

580


What does grep v do?

557


Are you in or at the office?

610


What is a command and examples?

583


Why is shebang used?

595






Which command is used to create a directory?

571


What is rmdir command?

553


What are the commands in UNIX to list the files in a Directory?

616


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

620


How do I run a whois command?

599


What does the “echo” command do?

624


What is the command to view process running?

574


Who invented grep?

651


Explain ‘library functions’ with respect to unix commands?

603


What is unix command line?

606