Find Files Recursively
Bashfind with -type f, size filter, and -exec for batch action.
#!/usr/bin/env bash
set -euo pipefail
find /var/log -type f -name '*.log' -size +10M -mtime -7 \
-exec ls -lh {} +
find with -type f, size filter, and -exec for batch action.
#!/usr/bin/env bash
set -euo pipefail
find /var/log -type f -name '*.log' -size +10M -mtime -7 \
-exec ls -lh {} +