How to... merge lines?????
Posted: 02 Dec 2009 19:41
Hi there,
I am still pretty new to batch scripting world, been trying different ways to do this without good results... Here I go:
Let's say that I have 2 files, both of them with multiple colums each and that will have always the same number of lines. What i need is to merge the contents of each line in these files into a third one.
Something like this:
file1.txt
COL_1 COL_2 COL_3 COL_4
Blah Blah Blahblah WhatEver
A E I O
data data2 dataW pl
file2.txt
COL_A COL_B COL_C
TA TE TI
DO RE MI
just in time
What i need is to get something like this:
file3.txt
COL_1 COL_2 COL_3 COL_4 COL_A COL_B COL_C
Blah Blah Blahblah WhatEver TA TE TI
A E I O DO RE MI
data data2 dataW pl just in time
That's all... any hapl will be highly appreciated!!!
EDIT: I had tab spaces between columns... but was lost when pasting here... i guess wou will be able to figure it out anyway...
I am still pretty new to batch scripting world, been trying different ways to do this without good results... Here I go:
Let's say that I have 2 files, both of them with multiple colums each and that will have always the same number of lines. What i need is to merge the contents of each line in these files into a third one.
Something like this:
file1.txt
COL_1 COL_2 COL_3 COL_4
Blah Blah Blahblah WhatEver
A E I O
data data2 dataW pl
file2.txt
COL_A COL_B COL_C
TA TE TI
DO RE MI
just in time
What i need is to get something like this:
file3.txt
COL_1 COL_2 COL_3 COL_4 COL_A COL_B COL_C
Blah Blah Blahblah WhatEver TA TE TI
A E I O DO RE MI
data data2 dataW pl just in time
That's all... any hapl will be highly appreciated!!!
EDIT: I had tab spaces between columns... but was lost when pasting here... i guess wou will be able to figure it out anyway...