Hands-on task
This task is step 8 of the course “First steps in Linux”
Pull the errors out of a log
/root/logs/app.log mixes lines of different severity levels: INFO is an ordinary event, WARN a warning, ERROR an error. Collect every ERROR line (exactly like that, in capitals) into /root/errors.txt — in the same order as in the log, unchanged.
What you'll practise:
- grep
- searching text
- letter case