Hi all,
I have a positional text file that comes from some source application. Before it is processed by destination application I have to add some header (suffix) to every record(line) in the file.
e.g.
Actual File
...............
AccountDetails
AcNO Name Amount
1234 John 26578
5678 Mary 455
8767 Bush 3455
..............
So on..The first two lines are always the same and the number of records/lines below that vary. Now I have to add a header to each record/line in the above file (from 19 to 25 column positions and the final file shuld like this this)
...................
AccountDetails Header1
AcNO Name Amount Header2
1234 John 26578 Account
5678 Mary 455 Account
8767 Bush 3455 Account
.....................
The header is same from third line/record.I tried but only able to add same header for all lines (using awk print $1"Header1"). Unable to add different header to first two lines in the script. Can you please help?
Regards,
Sharath.