To use a program such as grep to search in a file.
"I used grep to quickly find every instance of that error code in the server log file."
A program which selects lines in a file which match a given pattern.
"I used grep to quickly find every line containing the error code in the server log file."