grep is a command-line utility for searching plain-text data sets for lines that match a regular expression or a particular string. It will search for the string or regular expression in the input data and print all matching lines.
Syntax: grep [options] pattern [files]
Check the manual page for
grep to see the option details.