Add a grep function for searching through files.