Created
July 6, 2015 02:20
-
-
Save micromaomao/35206c77157a411d05c4 to your computer and use it in GitHub Desktop.
Rename file, remove web address prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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