MarseyWorld/scripts/clamscan.sh

6 lines
172 B
Bash
Executable File

LOGFILE="/var/log/clamav/clamav-$(date +'%Y-%m-%d').log";
clamscan -ri --detect-pua=yes --exclude-dir=/sys/* / >> "$LOGFILE";
tail "$LOGFILE"|grep Infected|cut -d" " -f3