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

one  title   state   name   testing   number
two  title2   state2   name2   final   number2
one  title3   state3   name3   pre   number3
four  title4   state4   name4   tesing2   number4
six  title5   state5   name5   testing3   number5
dip  title6   state6   name6   pre2   number6
fun  title7   state7   name7   final2   number7

the thing i'am looking for is that it needs to look for everything that contains item 5
and than be sorted by item 2 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   testing   number
four  title4   state4   name4   tesing2   number4
six  title5   state5   name5   testing3   number5

two  title2   state2   name2   final   number2
fun  title7   state7   name7   final2   number7

one  title3   state3   name3   pre   number3
dip  title6   state6   name6   pre2   number6

--
                      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