Created
March 20, 2014 12:38
-
-
Save rabbleNaut/9662879 to your computer and use it in GitHub Desktop.
Simple 1-liner that renames all texts files in a folder ending with ".sf1" to ".txt"
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 | |
# This will rename all files ending with ".sf1" to ".txt" | |
[os.rename(f, f.replace('.sf1', '.txt')) for f in os.listdir('') if f.endswith('.sf1')] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment