Skip to content

vip search-replace

Perform search and replace tasks on files


vip search-replace [options]


-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


- 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