2 ms·
If you find yourself having to escape a lot of slashes, then you can do something like this: echo "/foo/bar" | sed -e 's|/foo|/tmp|' (The article mentions thi
by klshxsh 12y ago
If you find yourself having to escape a lot of slashes, then you can do something like this:
echo "/foo/bar" | sed -e 's|/foo|/tmp|'
(The article mentions this)
- JetSpiegel 12y agoIt can be any character really. I like sed 's,foo,bar,' sed 's@foo@bar@'