The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-22-2007
rajx rajx is offline
Registered User
 

Join Date: May 2007
Posts: 4
Thanks for your response,but i need following

I have two files:

FILE1:

somedata
<html>
<head>
This is sample statement
......
......
</head>
</html>
somedata

FILE2:

olga 81 91 B A
rene 82 92 B A
zack 83 93

Expextd Result:

FILE1:

somedata
<html>
<head>
olga 81 91 B A
rene 82 92 B A
zack 83 93
</head>
</html>

MY question is how to replace the file2 contents into file1 between the patteren <head> and</head>

Thx in advance,
rajx

Last edited by rajx; 05-22-2007 at 06:48 AM..
Reply With Quote