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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 06-03-2007
reborg's Avatar
reborg reborg is offline
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,824
[quote=convenientstore]that did not work

Quote:
sed -e "s;/home/$dir1 /;/home/$dir2/;" |
It could never work with a space between $dir1 and /, becasue the string would never be replaced.

Also as pointed out by aigles, either you need to change the sed command or the xmen4 directory must already exist.
Reply With Quote