FileTextReplace (ftreplace) is a simple command-line utility initially designed to rewrite C# project's "App.config" and redirect "codebase" references into project's "Debug" folder, but implemented to be more configurable and useful. The tool can copy a source (template) file to the destination location, and/or replace all occurrences of "find" string with the "replace" string in the destination file. See https://github.com/cebence/ftreplace/blob/master/README.md for details and examples. IMPORTANT: Be aware of the "trailing backslash issue" and how it pertains to this tool (https://github.com/cebence/ftreplace/blob/master/README.md#backslash-issue).
$ dotnet add package FileTextReplaceNo README available.