Saving output to a file

Write the report

The team lead wants last night's errors in writing:

Put all the ERROR lines from ~/logs/app.log into ~/report.txt. Then add a last line that says exactly END OF REPORT, so I know nothing got cut off.

Your goal

Create ~/report.txt containing every line of ~/logs/app.log that contains ERROR, followed by one final line: END OF REPORT.

Starting Linux…

Stuck?

    Challenge not found

    This challenge doesn't exist (any more). See all challenges.