I have a text file in the format:
1,3
1,5
1,4
1,4.3
5,4
54,3
100,1
100,1
1100,2
etc
basically just two columns, comma separated.
I need to convert that into a text file with the format as follows:
1:
5
4
4.3
5:
4
54:
3
100:
1
1
1100:
2
etc
Column one appears once, followed by ':', with all of column two
values after it, in the same order as original file.
I have a program called TextPipe Pro that can handle the conversion, so I don't even need a whole perl script, I just have to fill in the
'perl-style pattern' for Find and 'perl-style pattern' for Replace.
Any help would be greatly appreciated.
1,3
1,5
1,4
1,4.3
5,4
54,3
100,1
100,1
1100,2
etc
basically just two columns, comma separated.
I need to convert that into a text file with the format as follows:
1:
5
4
4.3
5:
4
54:
3
100:
1
1
1100:
2
etc
Column one appears once, followed by ':', with all of column two
values after it, in the same order as original file.
I have a program called TextPipe Pro that can handle the conversion, so I don't even need a whole perl script, I just have to fill in the
'perl-style pattern' for Find and 'perl-style pattern' for Replace.
Any help would be greatly appreciated.