SPJ wrote:
Hi,

I am new to python hence posing this question.
I have a file with the following format:

test1    1.1-1   installed
test1    1.1-1   update
test2    2.1-1   installed
test2    2.1-2   update

I want the file to be formatted in the following way:

test1    1.1-1   1.1-2
test2    2.1-1   2.1-2

How can I achieve this? I am stuck here.

I suspect you need to

  a) remove the error in your specification (should there
     not be a "1.1-2 somewhere in the input) and/or

  b) explain the exact intent in a little more detail -
     we aren't psychic, and while the problem may be very
     obvious to you, we aren't inside your head with it!

regards
 Steve
--
Steve Holden        +1 703 861 4237  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to