#!/bin/bash # dave.mckeon http://www.bonzoli.com # 2007/01/28 # I consider all of these files to be bad, it also cleans up # files that the mp3check marked as bad. # Generally you'd run this at the very end to clean up a directory. # Delete bad files # I could probably replace bad_* with something like $1 and # us this for other stuff. # d.mckeon # Updated to get rid of .par2 files since they should also be finshed if # we are deleting the bad_ files. find ./ -depth -type f -name "bad_*" -exec rm -rf {} \; find ./ -depth -type f -name "*.par2" -exec rm -rf {} \; find ./ -depth -type f -name "*.PAR2" -exec rm -rf {} \; find ./ -depth -type f -name "*.1" -exec rm -rf {} \;