HI experts,


I am new to UNIX and need some help in accomplishing the below requirement:

1) I have a file (file1), with 3 parts as Header, data and Footer.
2) Now, I need to create another file (file2) with the same header and footer of file1, but need to modify the data in
between the header and footer of file1 and put it into file 2 between header and footer.
3) For example: i have US and CA, which should be replaced by CD in the data between header and footer in file2.


Please let me know how can go for it. Any help is surely appreciated.

Thanks,
Vishal.