find -mtime +7 -size +1M -delete: clearing old, oversized logs
Delete .log files older than 7 days and bigger than 1 MiB with one find command, and the traps on the way: permission denied on files you can write, -mtime and -size rounding, and why -delete goes last.
cat find-delete-old-large-log-files.md →