Skip to content

vip search-replace

Perform search and replace tasks on files

Usage

vip search-replace [options]

Options

OptionDescription
-d, --debug Activate debug output
-h, --help Output the help for the (sub)command
-i, --in-place Perform the search and replace explicitly on the input file
-o, --output Specify the replacement output file for Search and Replace
-s, --search-replace Specify the and pairs to be replaced
-v, --version Output the version number

Examples

- Replace instances of  with  in the provided 
* Ensure there are no spaces between your search-replace parameters
$ vip search-replace --search-replace="from,to"

- Perform Search and Replace explicitly on the provided input file
$ vip search-replace --search-replace="from,to" --in-place

- Search and Replace to the specified output file * Has no effect when the `in-place` flag is used
$ vip search-replace --search-replace="from,to" --output=""

Last updated: June 17, 2024