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

Answer Posted / bhaskar

syntax

grep "filename or string name"


It is used to find the values quickly

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the command '$ls | wc –l > file1' do?

676


Who wrote grep?

577


How do I open a port?

587


How do I search for a file in unix command?

541


What does find command return in unix?

592






What is nr in awk command?

595


What is the difference between awk and grep?

555


Explain mount and unmount command.

609


How do I use grep to search for a file?

578


Why is it called a shebang?

566


How do I use grep to find a file?

577


Why is awk called awk?

573


What does the md command do?

566


How do I delete files from command prompt?

549


Does cp command overwrite files?

614