[Tutor] compare and arrange file
Edgar Almonte
samudhio at gmail.com
Tue Jul 12 00:16:04 CEST 2011
hello , i have a file this a structure like this
XXXXXXXXX XXXX| 0000000000000.00| 0000000088115.39|
XXXXXXXXX XXXX| 0000000090453.29| 0000000000000.00|
XXXXXXXXX XXXX| 0000000000000.00| 0000000090443.29|
XXXXXXXXX XXXX| 0000000088115.39| 0000000000000.00|
XXXXXXXXX XXXX| 0000000000000.00| 0000000088335.39|
XXXXXXXXX XXXX| 0000000090453.29| 0000000000000.00|
XXXXXXXXX XXXX| 0000000088335.39| 0000000000000.00|
XXXXXXXXX XXXX| 0000000090443.29| 0000000000000.00|
now i need re-arrange the file in this way:
XXXXXXXXX XXXX| 0000000000000.00| 0000000088115.39|
XXXXXXXXX XXXX| 0000000088115.39| 0000000000000.00|
XXXXXXXXX XXXX| 0000000000000.00| 0000000090453.29|
XXXXXXXXX XXXX| 0000000090453.29| 0000000000000.00|
etc....
i try this
http://pastebin.com/2mvxn5GY
but without look
maybe somebody can give some hint , i know that this is maybe not a
directly python question but if somebody can help me I will appreciate
it
Thanks
More information about the Tutor
mailing list