Skip to content

Instantly share code, notes, and snippets.

@WangXiaoxi
Created April 27, 2017 11:07
Show Gist options
  • Save WangXiaoxi/e3110fd25b769bfd5101dd431494ceee to your computer and use it in GitHub Desktop.
Save WangXiaoxi/e3110fd25b769bfd5101dd431494ceee to your computer and use it in GitHub Desktop.
Batch rename files name with python
import os
for filename in os.listdir("."):
if filename.startswith("evaluation"):
os.rename(filename, "review"+filename[10:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment