Hi,
I am not able to use sed with syntax :
echo $LINE | sed "s/str1/str2/g"
if str2 is a backslash .
------------------------------------
I have to translate a Unix path /home/mydir/a/b/c
in a DOS one as \home\mydir\a\b\c .
I can capture str1 = / (using "s/\// ) but when
I use \ or \\ to indicate the backslash in the replace part, the syntax become incorrect.
Thanks
I am not able to use sed with syntax :
echo $LINE | sed "s/str1/str2/g"
if str2 is a backslash .
------------------------------------
I have to translate a Unix path /home/mydir/a/b/c
in a DOS one as \home\mydir\a\b\c .
I can capture str1 = / (using "s/\// ) but when
I use \ or \\ to indicate the backslash in the replace part, the syntax become incorrect.
Thanks