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: sed
You must be logged in to post a comment.