msgbartop
A cronological documentation test project, nothing serious, really!
msgbarbottom

25 Apr 07 Using sed to replace text with slashes

Posted by Hans-Henry Jakobsen

This is the right way to replace slashes

sed -e 's,/usr/bin,/home/bin,g'

Usually you replace text this way

sed -e 's/text1/text2/g'

You can use any character in place of those slashes.

Tags:

Leave a Comment

You must be logged in to post a comment.