1

split continues lines to separated section with conditions

view story
linux-howto

http://www.unix.com – Hello; i have a file contains N continues records. i want to split these lines to some separate sections with each lines of a section has the desired condition compared to other sections input: Code: AZR ? ? ? Pn 37.202 48.82 1136119044 1136119009 SHB ? ? ?  Pn 37.802 48.02 1136119047 1136119008 MRD ? ? ? Pn 37.102 48.42 1136119048 1136119005 DHR ? ? ? Pg 34.933 46.902 1136121387 1136121382 DHR ? ? ? Sg 34.973 46.222 1136121390 1136121382 MRD ? ? ? Pn 37.762 48.163 1136123668 1136123673 now i want to split these lines to N sections with these conditions: compare 2 tandem lines, i (HowTos)