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 02-07-2007
ranga27 ranga27 is offline
Registered User
  
 

Join Date: May 2006
Posts: 63
How can I replace multiple lines from different files

Suppose i have two files
file1.txt
Name : Raju
Address:rt8pouououoiu
City:tyretyeuetu

file2.txt

Address :28a


The line "address:28a" in file2 has to get replaced in the address line of file1 ..

The output should be

Name :Raju
Address:28a
city :tyretyeuetu

Please help me on this