Sync sort joining records
Posted: Sun Sep 20, 2009 11:51 pm
Hi,
Not sure how my previous 2 posts disappeared.
I have a requirement as below, whereby the first and second record in file1 should be joined into one record, the third
and fourth record into another record and so on, there is no particular key, file1 contains even number of records
so that pairs can be formed. So if there are 1000 records the output should have 500 records in total.
Example:
file1
James Burn
programmer
Jack Tingley
accountant
Result in output file2 should be like
James Burn programmer
Jack Tingley accountant
Thanks in Advance
Not sure how my previous 2 posts disappeared.
I have a requirement as below, whereby the first and second record in file1 should be joined into one record, the third
and fourth record into another record and so on, there is no particular key, file1 contains even number of records
so that pairs can be formed. So if there are 1000 records the output should have 500 records in total.
Example:
file1
James Burn
programmer
Jack Tingley
accountant
Result in output file2 should be like
James Burn programmer
Jack Tingley accountant
Thanks in Advance