There is a UN*X utility that will remove any old name (but the usage is ugly and the method can be slow for a file poised above a deep directory sub-tree): find . -name '<correct number of "?" for file name match>' \ -ok rm {} \; The trick is that find doesn't use the shell to exec rm.