Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # Not a very good example, using slice notation seemed the best bet
- # but i'm thinking a regex could have cleaned all the various extensions
- # so I didn't have to keep modifying the code depending on extension
- # will revisit this topic
- import os
- import glob
- os.chdir('/home/rfmonk/Source')
- for fi in glob.glob("*.c-*"):
- os.rename(fi, fi[:-13])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement