FunctionRacerProblemsRace

Lines With ERROR

BeginnerBasha shell script

Print every line of app.log that contains ERROR, written just like that, in capitals. Keep the lines whole and in their order.

Example 1

app.log
INFO job 1
ERROR disk 3
WARN an error came back
ERROR mail 7
prints
ERROR disk 3
ERROR mail 7

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