Skip to content

Instantly share code, notes, and snippets.

Created July 21, 2008 01:23
Show Gist options
  • Save anonymous/37 to your computer and use it in GitHub Desktop.
Save anonymous/37 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)
@tanghlu321
Copy link

Just commenting

@tanghlu321
Copy link

Just commenting

@tanghlu321
Copy link

Just commenting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment