buccaneers
Programmer
Hello Gurus,
I have a question rather i am stuck at this point.
I have two files. One containing a single record
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571
And other containing multiple records
~~10001A ~~N ~~123450.0 ~~0.0
~~10002B ~~N ~~234560.0 ~~0.0
~~10003A ~~N ~~345670.0 ~~0.0
~~10004A ~~N ~~456780.0 ~~0.0
What i want to see in output is
merging of these to files in such a way that
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571
is repeated in all the lines at the start of each line.
Output Example :-
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571 ~~10001A ~~N ~~123450.0 ~~0.0
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571 ~~10002B ~~N ~~234560.0 ~~0.0
How can i do this using awk ?
TIA.
I have a question rather i am stuck at this point.
I have two files. One containing a single record
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571
And other containing multiple records
~~10001A ~~N ~~123450.0 ~~0.0
~~10002B ~~N ~~234560.0 ~~0.0
~~10003A ~~N ~~345670.0 ~~0.0
~~10004A ~~N ~~456780.0 ~~0.0
What i want to see in output is
merging of these to files in such a way that
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571
is repeated in all the lines at the start of each line.
Output Example :-
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571 ~~10001A ~~N ~~123450.0 ~~0.0
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571 ~~10002B ~~N ~~234560.0 ~~0.0
How can i do this using awk ?
TIA.