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

What is grep in bash?

667


Which command will print your home directory on screen?

666


What does the “echo” command do?

730


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1068


Are you in or at the office?

708






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

695


How do I clear my terminal history?

677


Can you explain a little bit about command substitution?

709


Name the various commands that are used for the user information in unix.

638


What is awk command used for?

694


What is the use of egrep command in unix?

704


What is the functionality of a top command?

704


Explain ‘library functions’ with respect to unix commands?

702


Describe the zip/unzip command using gzip.

709


What does 'mkdir' command do in UNIX?

763