Created
January 11, 2016 17:38
-
-
Save dirk-thomas/47bc0b6a66abaca1486c to your computer and use it in GitHub Desktop.
Script to move spam pages to a different location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
for name in os.listdir('.'): | |
if not re.search('quickbook', name, re.IGNORECASE): | |
continue | |
print(name) | |
os.rename(name, '../pages_deleted/' + name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment