filtering a file then deleting it.
How do I filter a file for a certain string, and, if it is found delete the file and a binary file asscoiated with it? Example: I have several mail files that get bounced back due to bad addrersses. I want to delete these files and the binary file that is assciated with it. The binary file has the same name but starts with a "d". Any help would be greatly appreciated as I am a novice with perl, awk, sed and the rest of the commands. Thanks...