Search and replace tool is file oriented tool, it accept command line arguments for replacing one string with another. The source file(s) and the target folder where the replaced files would be copied are also command line parameters.
GoReplace command support and require multiple parameters to operate as expected.
> goreplace {-s | -source} [{-t | -target}] {-f | -find} {-r | -replace}
You can mix order in which parameters are given according to a specific needs.
Argument | Description |
---|---|
{-s } | { -source } |
[{-t }] | [{ -target }] |
{-f } | { -find } |
{-r } | { -replace } |
A few examples how to call the tool:
goreplace -s E:\bisaga-blog\Documents\*.md -t E:\bisaga-blog\Temp -f "(images/" -r "(/images/"