Skip to content

Instantly share code, notes, and snippets.

@wycats
Created July 21, 2008 01:28
Show Gist options
  • Save wycats/40 to your computer and use it in GitHub Desktop.
Save wycats/40 to your computer and use it in GitHub Desktop.
import re
import glob
import os
for i in files:
i = re.sub("papers", "notes", i.lower())
i = re.sub(" ", ".", i)
i = re.sub("[-,?():]", "", i)
i = re.sub("\.+", ".", i)
i = re.sub("pdf$", "rst", i)
with file(i, 'a'):
os.utime(i, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment