Ashus.ashus.net

Full Version: Replace in files (CLI)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A CLI script that replaces strings in files - recursively in multiple directories.
Files are filtered by *.txt filesystem matching convention, optionally directories are recursively traversed.
A text is replaced with another one, case sensitive.

The advantage of this over sed is you don't have to enter escaped regexps and worry about the results and you also don't need to enter parameters, you are asked each time.