ml-replace Multiline replace tool using sed Usage ml-replace.sh "$search" "$replace" input.txt > output.txt Sources Is it possible to escape regex metacharacters reliably with sed “sed” special characters handling