How to scan multiple directories with clamav
Solution 1:
You have to put the list of folders/files in a text file and pass it to clamscan using -f.
Example:
clamscan -r -z -i --bell --file-list=/home/nav/ClamScanTheseFolders.txt
Solution 2:
DIRTOSCAN="/home /var/spool /bin /sbin";
for S in ${DIRTOSCAN}; do
clamscan -ri "$S" >> "$LOGFILE";
done
Credit: https://www.howtoforge.com/tutorial/configure-clamav-to-scan-and-notify-virus-and-malware/