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 is the command to view process running?

578


What is the unix command to confirm a remote host is alive or not?

594


Write a command to kill the last background job?

622


Which command is used to delete all files in the current directory and all its sub-directories?

673


How does pipe () work?

599






What is ‘ps’ command for?

620


How do I use nslookup?

577


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

631


What is nr in awk command?

611


What is s and g in sed command?

563


What do chgrp command do?

596


Differentiate cmp command from diff command.

592


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

628


Give the command for finding the current date.

584


How do I search for text in vi?

590