There is a directory at /home/user/applogs containing several log files generated by a web application:
There is a directory at /home/user/applogs containing several log files generated by a web application:: a task in repo2rlenv-endless-terminals (Harbor dataset). 1. Filter errors: Extract all lines containing ERROR from app.log and error.log and combine them into a single file at…
The task
**1. Filter errors:** Extract all lines containing `[ERROR]` from `app.log` and `error.log` and combine them into a single file at `/home/user/applogs/combined_errors.txt`. The file must have lines from `app.log` first, then lines from `error.log`, with no blank lines between them.