transposing data every few line separately
I have a txt file where the first column is wind direction from 0 to 350 in delta's of 10.
      when it reaches 350 it goes back to zero.   
    What I want to do is transpose the data so that the first row is wind direction, how do I transpose every 36line seperatly and add the data?  
   i'd rather use gawk but if there is a better perl or R way of getting it done i will use it   


transposing data every few line separately
===

I have a txt file where the first column is wind direction from 0 to 350 in delta's of 10.
      when it reaches 350 it goes back to zero.   
    What I want to do is transpose the data so that the first row is wind direction, how do I transpose every 36line seperatly and add the data?  
   i'd rather use gawk but if there is a better perl or R way of getting it done i will use it   

