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 -->
  #3 (permalink)  
Old 06-02-2007
reborg's Avatar
reborg reborg is offline
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,824
Your use of quotes in the sed expression is incorrect. Remove the inner double quotes and replace the outer single quotes with double quotes.

Expansion of variables does not happen inside single quotes, the method you have used works because the variables are not quoted at all now.
Reply With Quote