grep is one of the sweetest tools :]
Pretty much what Infinite said, its a Search tool.
Quote from Grep GNU Project Website:
Grep searches one or more input files for lines containing a match to a specified pattern. By default, grep prints the matching lines.