Thanks for detailed explanation, bakunin!
Quote:
Originally Posted by
bakunin
This is two times the same expression - either of the same variant works. ;-)
No there was a slight problem, I figured out myself why this didn't work:
node=`echo $node | sed 's!/!\\/!g'`
echo $node
a/b/c
I needed to put another "\" because the expression is enclosed in single quotes. When it expands it it escapes the \ and net effect is i am left with the same thing. So this works:
node=`echo $node | sed 's!/!\\
\/!g'`
echo $node
a\/b\/c