While I’m the guy that effectively lives on the command-line, I still rarely use
sed. As I’ve been trying to use it more, I’ve run into some gotchas, mostly
around the regular expression syntax and doing multiple replacements at one
Fortunately, both are easy enough to accomplish.
Doing multiple replacements can be done simply by chaining commands together:
If you want to replace multiple strings with one value, you can use an extremely escaped version of a regular expression: