what is the function of grep command?

Answer Posted / kavin

grep is used to filter or search for a pattern in the given
file.

for example
grep student class

will display only the lines that contains the word student
in it.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

684


How do I use grep to find a file?

597


Who wrote grep?

591


What is the difference between cat and more command?

640


Write a command to display a file’s contents in various formats?

635






Name the unix command to find how many days the server has been up.

623


What are the unix commands?

567


What is used to type command?

560


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

601


Which command is used to restrict incoming messages?

598


How do you repeat a command in terminal?

602


What are file commands?

663


What is updatedb?

597


What is grep short for?

568


What does grep v do?

568