I'm new with Awk -- my files is structured like this:
>,T1N,R1E,S0,M15
108.533020,39.106216
108.533065,39.120697
108.478057,39.106170
108.496017,39.106155
108.514495,39.106155
>,T1N,R1E,S1,M15
108.440109,39.178619
108.421585,39.193130
108.421615,39.179992
108.421615,39.178649
>,T1N,R1E,S2,M15
108.458862,39.178543
108.440109,39.193176
108.440109,39.178619
I want to copy the line directly below >data and paste it above the next >data entry.
I can do it in vi easily, how can it be done in an awk script. I've already built a script to do the other output i need but am having trouble with this. I can't read fast enough to solve my problem.
Thanks!!!!!!
>,T1N,R1E,S0,M15
108.533020,39.106216
108.533065,39.120697
108.478057,39.106170
108.496017,39.106155
108.514495,39.106155
>,T1N,R1E,S1,M15
108.440109,39.178619
108.421585,39.193130
108.421615,39.179992
108.421615,39.178649
>,T1N,R1E,S2,M15
108.458862,39.178543
108.440109,39.193176
108.440109,39.178619
I want to copy the line directly below >data and paste it above the next >data entry.
I can do it in vi easily, how can it be done in an awk script. I've already built a script to do the other output i need but am having trouble with this. I can't read fast enough to solve my problem.
Thanks!!!!!!