Skip to content

Instantly share code, notes, and snippets.

View jskeates's full-sized avatar

Jake Skeates jskeates

View GitHub Profile
@jskeates
jskeates / rename.py
Last active August 29, 2015 14:10 — forked from snodnipper/rename.py
#! /usr/bin/python
import os, os.path, re
counter = 0
for root, _, files in os.walk("./"):
for f in files:
fullpath = os.path.join(root, f)
replaced = re.sub("_OST50GRID\w*", "", f)