how to extract data every 20 lines.# Unix - 噫吁兮,危乎高哉
x*i
1 楼
I have a data file with 20000 lines. Let me named it as A.dat
But I don't need so many lines of data to draw graph.
I just hope I can extract data from A.dat every 200 lines
and generate a new data file named B.dat and use file B.dat
to do my post-processing job.
Is there any shell command which can implement this job easily?
Thanks for help!
But I don't need so many lines of data to draw graph.
I just hope I can extract data from A.dat every 200 lines
and generate a new data file named B.dat and use file B.dat
to do my post-processing job.
Is there any shell command which can implement this job easily?
Thanks for help!