Skip to content

Instantly share code, notes, and snippets.

@ItsMeooooooo
Created March 19, 2016 08:12
Show Gist options
  • Save ItsMeooooooo/38c332570782bb6e2535 to your computer and use it in GitHub Desktop.
Save ItsMeooooooo/38c332570782bb6e2535 to your computer and use it in GitHub Desktop.
import os
import sys
files = os.listdir(sys.argv[1])
for f in files:
os.rename(f, f.replace(' ', '_'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment