Python

Материал из fidoman.ru

replace bad character in all filenames in the tree

for a in os.walk('.'): [os.rename(os.path.join(a[0],f), os.path.join(a[0],f.replace(':','='))) if f.find(':')!=-1 else 'ok' for f in a[2]]

use a[1] instead of a[2] for folders instead of files