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 is the difference between grep and grep?

563


How do I open a port?

587


What are grep patterns?

573


How do you grep a case insensitive?

536


What is ctrl d?

591






What does the md command do?

564


What does pipe () return?

590


How do I use grep to search for a file?

578


Enumerate some of the most commonly used network commands in unix?

612


how to sort the content of the file based on numeric values

1242


What is time_t?

581


What is rmdir command?

546


What is the first character of the output in ls l command?

627


What are some command words?

557


Which unix command to make a new directory?

586