Note, that spawn cannot interpret globs and neither can the spawned command rm do. 'find', however, can interpret them. Notice that you do not have to escape or quote *.ver in 'find'. But you will have to escape the curly braces. Do NOT quote them! ESCAPE them!