This page should have a description of what grep does, and some of the more common ways to use it, such as piping the results of ls or cat through it.