Does anyone know any commands? I'm trying to remove thousands of emails containing a certain text, or address, but I can't do it via command line.
Have tried...
for i in `ls -1 | head -1000`; do grep -H "Mail delivery failed: returning message to sender" * | awk -F: '{print $1}'`; do rm -f $i; done
Have tried...
for i in `ls -1 | head -1000`; do grep -H "Mail delivery failed: returning message to sender" * | awk -F: '{print $1}'`; do rm -f $i; done