import glob for v in glob.glob('*.svg'): print 'cp '+v+' '+v.replace('.svg','.origin.svg')