I have a file \"test.txt\" that contain the following
+foo+ +bar+
What I want to do is to replace them into:
\'foo\' \'bar\
Use " instead. And add g flag to replace all.
"
g
sed "s/\+/\'/g" test.txt