Re: formatting file

2005-04-06 Thread Peter Otten
SPJ wrote: > test11.1-1   installed > test11.1-1   update > test22.1-1   installed > test22.1-2   update > > I want the file to be formatted in the following way: > > test11.1-1   1.1-2 > test22.1-1   2.1-2 The following program expects a sorted input file: import itert

Re: formatting file

2005-04-06 Thread Steven Bethard
SPJ wrote: Hi, I am new to python hence posing this question. I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1

Re: formatting file

2005-04-06 Thread gry
SPJ wrote: > I am new to python hence posing this question. > I have a file with the following format: > > test11.1-1 installed > test11.1-1 update > test22.1-1 installed > test22.1-2 update > > I want the file to be formatted in the following way: > > test11.1-1 1.1-2

Re: formatting file

2005-04-06 Thread Steve Holden
SPJ wrote: Hi, I am new to python hence posing this question. I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1

Re: formatting file

2005-04-06 Thread Peter Hansen
SPJ wrote: I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1 2.1-2 Please verify that you made an error about th

formatting file

2005-04-06 Thread SPJ
Hi, I am new to python hence posing this question. I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1 2.1-2