Skip to content

Instantly share code, notes, and snippets.

@micromaomao
Created July 6, 2015 02:20
Show Gist options
  • Save micromaomao/35206c77157a411d05c4 to your computer and use it in GitHub Desktop.
Save micromaomao/35206c77157a411d05c4 to your computer and use it in GitHub Desktop.
Rename file, remove web address prefix
#!/usr/bin/python
import os;
import fnmatch;
for file in os.listdir('.'):
if fnmatch.fnmatch(file, "WWW.DOWNVIDS.NET-*.mp3"):
os.rename(file, file[17:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment