I am new to UNIX......I have one file which contains thousnads of records with header and tailer.
Header
Record 1
Record 2
....
....
Last Record
Trailer
I want to concatenate Header and Trailer in the first line....now the output should look like this:
Header: Header value, Trailer: Trailer Value
Record 1
Record 2
....
....
Last Record
I used this command to get the trailer from file:
tail -1 output_file
But not getting logic to further do.....can anybody pls complete this script.......thanks....