What is the syntax of grep command and what is its use?

Answer Posted / bharath

grep command is used to search a file for keywords.
grep 'keyword' file

Is This Answer Correct ?    9 Yes 0 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?

622


Is command prompt unix?

575


How does pipe () work?

589


What's a command word?

583


Explain the steps that a shell follows while processing a command.

678






Which unix command to make a new directory?

586


Explain command to show the space allocation of files?

626


How to display no of records in oracle using unix command?

587


What is updatedb?

580


What is the behavioural difference between cmp and diff commands?

670


What is awk used for?

615


How does the system know where one command ends and another begins?

1572


What are filter commands in unix?

548


What is the use of finger command?

593


What is awk command used for?

596