Hands-on task
This task is step 2 of the course “Logs: analysis and housekeeping”
Delete lines by pattern
The log /root/app.log has lines of level DEBUG — they get in the way. Delete all lines containing DEBUG and write the cleaned log to /root/clean.log (the remaining lines — unchanged and in the same order).
Reference:sed
What you'll practise:
- sed
- address pattern
- deleting lines
- log filtering