[Tutor] hiya
aaron meredith
aaron at aaron-m.co.nz
Tue Feb 5 10:55:31 CET 2008
i have tried to do this so many different ways but im not sure how to do it,
i have a file with say multiple lines in it, it has a word in each line i
want to keep but i also need the kept word in every first and second line
joined together with some text in the middle
this is what file looks like
-------------------------------------
line test 6 tree /keptpart/1_1/ word test
line test 6 tree /keptpart/2_2/ test word
line test 6 tree /keptpart/3_1/ word test
line test 6 tree /keptpart/4_2/ test word
line test 6 tree /keptpart/5_1/ word test
line test 6 tree /keptpart/6_2/ test word
line test 6 tree /keptpart/7_1/ word test
line test 6 tree /keptpart/8_2/ test word
--------------------------------------
i need to have the above file printed as below
"/keptpart/1_1/ joined to /keptpart/2_2/"
"/keptpart/3_1/ joined to /keptpart/4_2/"
"/keptpart/5_1/ joined to /keptpart/6_2/"
"/keptpart/7_1/ joined to /keptpart/8_2/"
i dont really have any script to show u what i have done cause i have tried
so many different things please help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080205/98915771/attachment.htm
More information about the Tutor
mailing list