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

Answer Posted / shilpa

syntax= % grep pattern file-name-1 file-name-2
It is used to search files

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep in bash?

581


Is command prompt unix?

575


How does pipe () work?

589


Explain command to display different lines that are found when compare two files?

676


How do I use grep to search for a file?

578






How do I run a bash script?

576


What command will change your prompt to myprompt?

696


What is unix command?

579


hw will u use awk in replacing cahrs and files

2724


What does grep v grep do?

546


Describe the zip/unzip command using gzip.

606


Who invented grep?

648


What is the significance of the 'tee' command?

594


Which command is used to restrict incoming messages?

587


What is the pipe command?

572