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

Is grep faster than awk?

730


What are filter commands in unix?

762


Write a command to kill the last background job?

785


What is command substitution?

871


Enlist some filename manipulation commands in unix.

745


What is awk command used for?

778


Explain ‘library functions’ with respect to unix commands?

808


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

965


What is the command to view process running?

791


What is s and g in sed command?

786


What is sed awk grep?

815


Is it inbetween or in between?

795


What is {} in find command?

770


Describe the usage and functionality of the command rm –r * in unix?

1376


What is the significance of the 'tee' command?

812