Created
January 6, 2012 16:56
-
-
Save farshidce/1571423 to your computer and use it in GitHub Desktop.
rename rel files
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
import os | |
find = "1.8.0r-55-g80f24f2" | |
replace = "1.8.0" | |
files = os.listdir(".") | |
for f in files: | |
if f.index(find) != -1: | |
newf = f.replace(find,replace) | |
print newf | |
os.rename(f,newf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment