let say that the file contains these items (every item is seperated with a tab)

one  title   state   name   code1   number
two  title2   state2   name2   code2   number2
one  title3   state3   name3   code3   number3
four  title4   state4   name4   code4   number4
six  title5   state5   name5   code1   number5
dip  title6   state6   name6   code1   number6
fun  title7   state7   name7   code2   number7

the thing i'am looking for is that it is sorted by item 5 and writes back to the file
with an extra line if item 5 is different


so I would come up with:

one  title   state   name   code1   number
six  title5   state5   name5   code1   number5
dip  title6   state6   name6   code1   number6

two  title2   state2   name2   code2   number2
fun  title7   state7   name7   code2   number7

one title3 state3 name3 code3 number3

four title4 state4 name4 code4 number4


Is there someone that can help me -- Oooo. oooO ( ) ( ) ) / \ ( (_/ \_)

thanks
Bjorn Van Blanckenberg


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to