Step 1/1: Extended regular expressions

egrep is grep -E: extended regexes where | (or), +, ?, () and {n} need no backslash. egrep "ERROR|WARN" finds lines with either.

$ egrep "ERROR|WARN" app.log
Fundamentalsegrep
Match either one
Use egrep to find the lines of worker.log that contain WARN or ERROR.
columnNext lesson:paste