What is the best way to solve my problem?
I have a file that contains string lines. I want to analyze it. So in my approach I need to take first N lines, do something with them, than instead 1-st line I need to take N+1 line and analyze this block, than instead 2-nd line - N+2 line and so on to the end of the file.
st_1
st_2
st_3
...
st_LAST
First block:
[st_1, st_2, ... , st_N]
Second block:
[st_2, st_3, ... , st_N, st_N+1]
Last Block:
[st_LAST-N, st_LAST-N+1, ... , st_LAST]