DVoituron.FindAndReplace 1.2.0

A simple and intuitive command line tool to find regular expression and replace by new value.
Ideal for automating configuration files for multiple environments

dotnet tool install --global DVoituron.FindAndReplace --version 1.2.0
This package contains a .NET Core Global Tool you can call from the shell/command line.

Simple command line tool to find and replace regular expression, in multiple texts (json, xml, config files).

Usage: FindAndReplace [options] 

 Options:
   --Find      | -f    Required. Text to search. 
                       If Mode is undefined: regular expression syntax, with case insensitive.
                       If Mode=Json: Find is the JSON key and Replace is the value to set.
   --Replace   | -r    Text to replace.
   --Base      | -b    Base directory to start file searchs. Default is current folder.
   --Pattern   | -p    List of files to include in the search. Default is *.*.
                       Using the Minimatch syntax (**/*.config search in all sub-folders).
   --Demo      | -d    Run the tool in Preview mode (without update files).
   --Mode      | -m    Execution mode of the tool.
                       By default, undefined.
                       JSon, find the key to replace by his value.

Examples:
  FindAndReplace --find="Version" --replace="1.0.2" --pattern=**/*.json --mode=json
  FindAndReplace --find="([A-Z])\w+" --replace="XXX" --pattern=**/*.txt

Simple command line tool to find and replace regular expression, in multiple texts (json, xml, config files).

Usage: FindAndReplace [options] 

 Options:
   --Find      | -f    Required. Text to search. 
                       If Mode is undefined: regular expression syntax, with case insensitive.
                       If Mode=Json: Find is the JSON key and Replace is the value to set.
   --Replace   | -r    Text to replace.
   --Base      | -b    Base directory to start file searchs. Default is current folder.
   --Pattern   | -p    List of files to include in the search. Default is *.*.
                       Using the Minimatch syntax (**/*.config search in all sub-folders).
   --Demo      | -d    Run the tool in Preview mode (without update files).
   --Mode      | -m    Execution mode of the tool.
                       By default, undefined.
                       JSon, find the key to replace by his value.

Examples:
  FindAndReplace --find="Version" --replace="1.0.2" --pattern=**/*.json --mode=json
  FindAndReplace --find="([A-Z])\w+" --replace="XXX" --pattern=**/*.txt

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.2.0 149 8/24/2018
1.1.0 186 7/10/2018