Back to the learning path

grep

grep = global regular expression print, from the ed command g/re/p Command details
Step 1/6: Lines with a keyword

grep PATTERN FILE prints every line containing the pattern. Patterns are regular expressions, and plain words work too.

$ grep ERROR app.log
Fundamentalsgrep
Find the WARN lines
Show every line of server.log that contains WARN.
findNext lesson:echo