Hi Guys,
I am trying to read 2 columns from a file and print that out into another file, after some data manipulation.
Eg: The input file would look like this
Col1 Col2 Col3
1 2 3
4 5 6
7 8 9
Output should be
Col2 Col3
2 3
5 6
8 9
So far, I was able to read Col2 and Col3 as lists and later converted it into 2 different columns but I can't get to join the 2 columns in a single file.
For eg: puts $Col2 yields the following -->
2
5
8
Similarly for $Col3
Can someone on this forum please help? How do I merge the 2 columns with a space as delimiter? I tried using "format", "concat" and "join", but none of these worked for me.
Thanks,
UCPR
I am trying to read 2 columns from a file and print that out into another file, after some data manipulation.
Eg: The input file would look like this
Col1 Col2 Col3
1 2 3
4 5 6
7 8 9
Output should be
Col2 Col3
2 3
5 6
8 9
So far, I was able to read Col2 and Col3 as lists and later converted it into 2 different columns but I can't get to join the 2 columns in a single file.
For eg: puts $Col2 yields the following -->
2
5
8
Similarly for $Col3
Can someone on this forum please help? How do I merge the 2 columns with a space as delimiter? I tried using "format", "concat" and "join", but none of these worked for me.
Thanks,
UCPR