Skip to content

Instantly share code, notes, and snippets.

@hasasn
Created May 13, 2015 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasasn/209d62ec49e6ae7879f0 to your computer and use it in GitHub Desktop.
Save hasasn/209d62ec49e6ae7879f0 to your computer and use it in GitHub Desktop.
import os
path = os.getcwd()
filenames = os.listdir(path)
for filename in filenames:
os.rename(os.path.join(path, filename), os.path.join(path, filename.replace('seek', 'replace')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment