What I would like to do is the following, create 100 new files based on content of the second column,
The first file should contain all the lines with a distance between 0 and 1000,
the second between 1000 and 2000, and so on untile 99000 and 10000,
Finally for each new file I would like to calculate the median of the third column(score)
Is there a rapid way to do so? I tried witha perl script but it seems really slow,