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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 04-09-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
i thought you ment you already had in place of current_dir teh pwd command.

didnt know you were trying to sub it on the fly.

dont use the forward slash in your sed command choose another metachar like pipe.

ie: sed "s|current_dir|`pwd`|" <filename>

that works on my sys