Make path replacements easier to read.
Section: sed Substitution
Use an alternate delimiter
bash
bash
sed 's|/usr/local/bin|/opt/bin|g' paths.txtExplanation
Alternate delimiters reduce escaping when replacing file paths or URLs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed Substitution