FunctionRacerProblemsRace

How Many Errors

BeginnerBasha shell script

Print the number of lines in app.log that contain ERROR. A line with the word twice still counts once.

Example 1

app.log
INFO job 1
ERROR disk 3
ERROR after ERROR
WARN mail 7
prints
2

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Bash problems