Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@tanghlu321 tanghlu321 commented Jan 31, 2015

Just commenting

@tanghlu321

This comment has been minimized.

Copy link

@tanghlu321 tanghlu321 commented Jan 31, 2015

Just commenting

@tanghlu321

This comment has been minimized.

Copy link

@tanghlu321 tanghlu321 commented Jan 31, 2015

Just commenting

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