WeCodeAcademy

Log Detective Challenge

Detective work. Build a small log file, then answer questions about it with grep and pipes.

Examplebash
Open in editor »
/ $

Try your own in the terminal below: show the last two lines with tail -n 2 app.log, or count the INFO lines.

Quick check

Which command counts the lines of `app.log` that contain WARN?

Your turn: write the code

app.log is created for you. Print how many lines contain INFO.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.