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 behavioural difference between cmp and diff commands?

682


What is grep r?

596


What does pipe () return?

600


Give the command for finding the current date.

584


Does cp command overwrite files?

628






What is ctrl d?

598


What is the use of cut command in unix?

696


What does #!/ Bin sh do?

599


What is “chmod” command?

568


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

628


Which command is used to restrict incoming messages?

594


What is the size of time_t?

657


Explain mount and unmount command.

623


What are the differences among a system call, a library function, and a unix command?

571


What is merge command in unix?

946