what is the use of "grep" command?

Answer Posted / bharath

grep command is used to search a string or a keyword in a
file.
syntax:
grep 'keyword' file

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you repeat a command in terminal?

592


What command will change your prompt to myprompt?

706


What is nr in awk command?

604


What is the pipe command?

578


Who command in unix?

576






How can you see the command line history?

586


What is difference between grep and find command in unix?

580


What is awk good for?

588


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

632


How do I delete files from command prompt?

554


Which command is used to delete all files in the current directory and all its sub-directories?

668


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

585


What do chmod, chown, chgrp commands do?

641


Which command is used to copy files?

556


What is the comma to show the space allocation of files?

562