Skip to content

MaxSteven/searchReplace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

searchReplace

Search (and replace) in text files

Requirements: Python, Pyside/PyQt (configure this in searchReplace.py)

Features:

  • Search
  • Search & Replace
  • Filetype/filename filtering
  • Records the row(s) of the text file containing the search string - optionally disable this
  • Designed to be easy on RAM, to be used on enormous projects containing a large number of text files
  • In case of write error, a dump file will be created next to the original file with the original contents
  • Binary file detection (and option to skip these files)
  • Can run inside of Nuke, Maya as well as standalone
  • Tested on OS X, Windows 7 with Python 2.6
  • Creates a log file next to searchReplace.py with information and error messages

Important notice: Use this application at your own risk!

This application does NOT store the contents of all text files matching the search criteria locally or in the RAM. Instead, it opens the files and re-writes them on the fly to minimize RAM usage. This is great for processing many huge files. If there is a write error - all data is lost. Be VERY careful when running this application.

There is a plan b whenever there is a write error (maybe the file is open or locked). The application will then attempt to write down a dump file next to the text file with suffix "_DUMP". If this also fails (e.g. out of disk space), all data is lost.

About

Search (and replace) in text files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%