How do I print from the nth match to the mth match in a file?
For example
>1
dfgsdrhsdtrh
>2
zdfrgsdh
>3
zdsfgadrh
>4
sdtrh
>5
drh
If I want the 2nd to the 4th match to the regexp '^>', including the Nth match and up to but not including the M+1th match. Yielding, for example:
>2
zdfrgsdh
>3
zdsfgadrh
>4
sdtrh