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 01-17-2008
melanie_pfefer melanie_pfefer is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 234
replace a string

hello

I have a file where an entry needs to be modified. an example of this entry is:

install_location=/xena/sybase/ase12_5

I need to replace xena with another hostname (`hostname` output) for example:

install_location=/dx1/sybase/ase12_5

how to do that?

thanks