grep

grep looks like regular expression matches in text, and is a very versatile tool.

Here is the GNU grep manual.

Here are some handy invocations:

grep is particularly useful when you stick to plain text.

grep can print out matching file names, but if you need further processing you can turn to something like awk when you want to work on files and print out the per-file results.

Home