The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-11-2008
nookie nookie is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 9
sed command breaking because of /

hey im having a problem with my script

replace="dir/another_dir"

sed s/something/$replace/g

is there a way i can get around this problem without using the escape string character "\"