The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 12-13-2006
sakthi.abdullah sakthi.abdullah is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 22
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'`