what is the function of grep command?

Answer Posted / dhina

Grep will help us to display the particular information from
a file. For example.

grep apple fruitlist.txt

In this case, grep prints all lines containing 'apple' from
the file fruitlist.txt

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk command used for?

783


What is awk good for?

794


Differentiate cmp command from diff command.

796


hw will u use awk in replacing cahrs and files

2932


Is it inbetween or in between?

797


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

858


Name the general commands in using unix os for a beginner?

802


What is grep r?

783


What is command substitution?

879


What is sed awk grep?

821


What are grep patterns?

769


How do I clear my terminal history?

799


Can you enlist some commonly used network commands?

799


What happens when we execute a unix command?

797


Describe the usage and functionality of the command rm –r * in unix?

1421