I've got a rather sizable CSV file (75MB). I'm just trying to produce a graph of it, so I really don't need all of the data.
Rewording: I'd like to delete n lines, then keep one line, then delete n lines, and so on.
So if the file looked like this:
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
and n=2, then the output would be:
Line 3
Line 6
It seems like sed
might be able to do this, but I haven't been able to figure out how. A bash command would be ideal, but I'm open to any solution.