Grep

grep is a command-line utility for searching plain-text data sets for lines that match a regular expression

Grep looks for a pattern inside a file. It ignores most linux special characters and treats them as normal text

Examples
grep 'hello' foo.txt


 * looks for every line containing 'hello' and displays all the lines

Command syntax
grep options 'regular expression' file(s)

Options

 * -n display line numbers with the output
 * -c display just a count of lines
 * -i case insensitive mode
 * -v display all lines that don't match the pattern