what is the use of "grep" command?

Answer Posted / bharath

grep command is used to search a string or a keyword in a
file.
syntax:
grep 'keyword' file

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pipe command in unix?

668


What is the function of grep command in unix?

584


Is command prompt unix?

577


What is difference between grep and find command in unix?

577


How do I find previous commands in unix?

592






How many unix commands are there?

624


What does #!/ Bin sh do?

587


How can you see the command line history?

580


Name the various commands that are used for the user information in unix.

539


Explain how to use grep command to list find the records of a file containing 10 different strings?

593


What does this command do? Cat food 1 > kitty

974


What does touch command do in unix?

723


What will the following command do?

611


Which command should you use to find the remaining disk space in unix server?

701


Can you explain a little bit about command substitution?

606