It depends a little on what kind of file you're searching, and the kind of output you want. Simply
more thefile | grep from
will print exactly the lines of "thefile" that contains the word from (given that the file is a plain text file). Just write back if this was not exactly what you were looking for.