Write ~/errors-per-log.sh. For each file in ~/logs that ends with .log, it writes one line:
text
/home/learner/logs/door.log: 0Use for, a wildcard and grep -c. Then save its output in ~/errors.txt.
Write the loop
~/errors-per-log.sh has the shebang, a for over ~/logs/*.log, and done. The owner can run it.