Created a really ugly cron to check PPPoE-Connection status which runs every minute. This script produced over 500+ E-Mails in my Maildir.
This command will do the dirty cleaning job and let your fingers relaxed;)
Go to the users Mailbox:
1 | cd /home/reports/Maildir/cur/ |
Search a string from E-Mail and remove this E-Mail/s:
1 | rgrep "monitor-pppoe.sh" * -l | xargs -n 100 rm |
Leave a Reply