#!/bin/bash clear printf "\t\t\tClamAV Reversal Script\n" printf "\t\t\tCopyright 2006 Max QE LLC\n\n" sleep 2 printf "Creating List....\n\n" cat /var/log/clamav.log | grep "Oversized.Zip"|awk '{print $1}'|cut -d: -f1 > /Reverse_ClamAV_Move.LIST for A in `ls` do cat /Reverse_ClamAV_Move.LIST|grep ${A} > /Reverse_ClamAV_Move-NEW.LIST for B in `cat /Reverse_ClamAV_Move-NEW.LIST` do if [[ ${A} == ${B} ]] then # cp ${A} ${B} printf "Copied ${A} to ${B}\n" printf "Copied ${A} to ${B}\n" >> /LOG_OF_MOVE fi done done exit 0