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

Answer Posted / amit

grep command is used to search the any word, any sentence
from given or input file.
syntex of grep command is
grep "word or sentence" filename

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does grep v grep do?

760


What does the command ' $who | sort –logfile > newfile' do?

1026


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

798


Is grep faster than awk?

739


What are the unix commands?

751


Write a command to kill the last background job?

792


Differentiate cmp command from diff command.

797


Which unix command to make a new directory?

797


What are the commands in UNIX to list the files in a Directory?

813


What difference between cmp and diff commands?

951


What is the difference between grep and grep?

797


What command is used to switching between users in unix?

762


What is grep and how do you use it?

783


How do you repeat a command in terminal?

837


Write a command that will display files in the current directory, in a colored, long format.

919