Skip to content

Instantly share code, notes, and snippets.

@marlun
Created December 9, 2010 13:14
Show Gist options
  • Save marlun/734700 to your computer and use it in GitHub Desktop.
Save marlun/734700 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
for f in os.listdir(os.getcwd()):
if os.path.isdir(f):
newname = f.replace(u'å', u'a')
os.rename(f, newname)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment