Set up ClamAV for OSX #1 : The open source virus scanner
Jonas Felix
485

Here’s my command. This does a scan, logs the errors/hits, and quarantines the files.

sudo mkdir /INFECTED
sudo clamscan -r — scan-pdf=yes -l /INFECTED/infected.txt — move=/INFECTED/ /

You can save it in a text file, rename it from .txt to .command, then in terminal do a chmod 755 to it, and now you can run it by double-clicking the command.