Quote:
|
Originally Posted by jim mcnamara
Code:
echo "a/b/d" | sed 's#/#\\/#g'
When you are using sed to work with "/" characters you have to use another delimiter - in this case I picked "#"
|
Again,
echo "a/b/d" | sed 's#/#\\/#g' ll work fine.... But What I need is something like this ..how can I store that value on to a variable
like
abc=`echo "a/b/d" | sed 's#/#\\/#g'`