Created
May 30, 2018 04:43
-
-
Save rounakdatta/5a5af5445b8b1d633093be52daaf1c27 to your computer and use it in GitHub Desktop.
Rename multiple files in order in a second
This file contains hidden or 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 | |
counter = 1 | |
for file in os.listdir("."): | |
if file.endswith(".pdf"): | |
os.rename(file, "resume" + str(counter) + ".pdf") | |
counter += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment