Hi:
First, this is not a homework problem. I just need enough of a hint to get this going...
My datafile (dataf.in) is made up of 10 sections. Each section begins with & and with &&
So it looks like this:-------------------------------------
§ion1
...etc...
&&
§ion2
...etc...
&&
------------------
I need to replace section2 with a new section that I call "section_new" contained
in file (dataf.new). So now, dataf.in looks like this now:
§ion1
...etc...
&&
§ion_new
...etc...
&&
I am trying to do that with no luck with a shell script or awk.
Is that feasible? or should I be coding it in C?
Any suggestion or feedback is appreciated.
Best,
Paprika