grep is a Unix command line tool for finding patterns in files.

Build your own grep is available with a project breakdown on Coding Challenges.