This code:
echo Foo | sed -e 's/Foo/Bar'
results in unescaped newline inside substitute pattern
(instead of the expected Bar
).
I'm obviously overlooking something simple, bash/sed/escaping related, but I can't find out what's causing this?
You are missing terminating /
:
echo Foo | sed -e 's/Foo/Bar/'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With