several find/replace scripts similar to sed/awk/grep
Python Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.org
find-replace.pl
find-replace.py3
find_replace_regex.py3

README.org

Several general and customizable find/replace scripts similar to sed/awk/grep.

  • find-replace.pl → perl version
  • find-replace.py3 → python 3, no regex
  • find_replace_regex.py3 → python 3, with regex

This is a tool for programers.

To use, open the script, and edit the input path, and other parameters. These scripts do not use command line args by design, because when the string is long, it’s easier to work with the script.

Features:

  • Multiple find/replace pairs.
  • with regex or literal replacement.
  • Find and replace strings can be multi-lines.
  • Find and replace strings can contain unicode characters.
  • work on list of files, or all files in a directory or sub-directory.
  • Can specify a range of depth level of a directory.
  • Works with Unicode UTF-8 encoded files.