Hey all,
I need to create a script that searchs through the files of a directory for a string that would actually be inside of the file (it is actually an email address (ie test@test.com)), if the string is found, I need it to delete the file.
I have a mail filter queue on my firewall and it keeps getting cluttered with messages from the postmaster and the daemon. I need to delete any files in the queue that have come from the either of those mailboxes. I cannot delete all the contents of the directory because I would be getting rid of email that is supposed to be there.
I have never created a script before and am looking for some help, any you could offer would be appreciated.
Tim
I need to create a script that searchs through the files of a directory for a string that would actually be inside of the file (it is actually an email address (ie test@test.com)), if the string is found, I need it to delete the file.
I have a mail filter queue on my firewall and it keeps getting cluttered with messages from the postmaster and the daemon. I need to delete any files in the queue that have come from the either of those mailboxes. I cannot delete all the contents of the directory because I would be getting rid of email that is supposed to be there.
I have never created a script before and am looking for some help, any you could offer would be appreciated.
Tim