Skip to content

Instantly share code, notes, and snippets.

@kevinchappell
Created December 6, 2015 15:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kevinchappell/f019ede600db39f0ff3e to your computer and use it in GitHub Desktop.
Purge Quarantined Viruses
#!/bin/sh
for i in `awk '!/nobody/{print $2 | "sort | uniq" }' /etc/userdomains | sort | uniq`; do
QUARANTINE="/home/${i}/quarantine/"
rm -rf $QUARANTINE &>/dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment