This question already has an answer here:

I have some text file (for example json). I can use head order for the reading of the first lines. For example:

head -n 100 file.json

get me 100 first lines back. What is Linux order, which I can use to read some general lines somewhere in file? For example from the line 500 to the line 700.

marked as duplicate by cuonglm, Anthon, slm Aug 29 '14 at 12:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can use sed:

sed -n 500,700p file.json

Not the answer you're looking for? Browse other questions tagged or ask your own question.