Multiline fixed string search and replace with CLI tools
This post shows how you can use ripgrep
, perl
and sd
commands to perform multiline fixed string search and replace operations from the command line. Solution with GNU sed
is also discussed, along with its limitations.