4

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.

terdon
  • 234,489
  • 66
  • 447
  • 667
Guforu
  • 383
  • 3
  • 6
  • 10

1 Answers1

4

You can use sed:

sed -n 500,700p file.json
chaos
  • 47,463
  • 11
  • 118
  • 144