grep file and send email
file=$(cat /var/log/vsftpd.log | grep “POLL06S(`date +’%Y%m%d’ -d ‘yesterday’`)")
file=$(cat /var/log/vsftpd.log | grep “POLL08S(`date +’%Y%m%d’`)")
echo -e “$file1rn$file2″ | sed “s/^/ /" | mail -s “subject `date +%Y%m%d`" -r “sender name " “toEmail@example.com"