what is the function 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 ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of egrep command in unix?

824


How do I open a port?

772


Can you explain a little bit about command substitution?

817


What is grep and how do you use it?

783


What is unix command?

869


How do you repeat a command in terminal?

836


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1012


What is the use of tee command?

760


What is $0 bash?

888


What is the command to view process running?

799


Explain command to display different lines that are found when compare two files?

882


What is merge command in unix?

1136


Why is shebang used?

799


What is s and g in sed command?

791


What is ‘ps’ command for?

839