MicrolearnENPTES

Search text with grep

Lesson 10 of 20 · Term.Micro

Find the lines that matter in files and folders.

grep prints only the lines that contain the pattern, with the match highlighted. Here: every request that got a 403 (forbidden).

Check yourself

Which command counts the lines containing "error" in app.log, ignoring case?

Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.

Start this lesson — free
← Look inside filesFind files →

All lessons · Term.Micro