Skip to content

Instantly share code, notes, and snippets.

@ayushgoel
Created December 9, 2014 08:20
Show Gist options
  • Save ayushgoel/1966a1470379c1599762 to your computer and use it in GitHub Desktop.
Save ayushgoel/1966a1470379c1599762 to your computer and use it in GitHub Desktop.
Rename all files in current folder - remove first 3 chars
for i in os.listdir('.'):
if i.startswith('.') == False: #Hidden files
os.rename(i, i[3:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment