sed.exe multiple string substitution with one string, OR replacement

Use \| to make multiple substitution with one string. \| works like OR:
sed "s/\d034\|\d039\|(\|)/\n/g" input.txt > output.txt
This example will replace ", ', ( and ) with new line character \n.
\n works like html tag <br /> - brake rule.

Related links:
https://edoras.sdsu.edu/doc/sed.html
Related files:

No comments: