Need help in code

This is the place for queries that don't fit in any of the other categories.

Need help in code

Postby knip » Sat Jan 18, 2014 9:39 pm

Input file

Col1 Col2 COl3
A AA AAA
A AA AAA
B BB BBB
B BB BBB
B BB BBB
D DD DDD

Output
Col1 = A - 2 B- 3 D - 1
Col2 = AA-2 BB-3 DD-1
Col3= AAA-2 BBB-3 DDD-1

can anyone please help me with the code to get above result if the file is TAB separated file?
knip
 
Posts: 3
Joined: Thu Jan 16, 2014 8:23 pm

Re: Need help in code

Postby stranac » Sat Jan 18, 2014 9:41 pm

Sure.
What code do you have so far?
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1096
Joined: Thu Feb 07, 2013 3:42 pm


Return to General Coding Help

Who is online

Users browsing this forum: Google [Bot] and 1 guest