This will display only lines 40-50 in a file called lines.txt.

<pre lang="bash">
$ cat lines.txt | head -n 50 | tail -n 10

For lines 90-100.

<pre lang="bash">
$ cat lines.txt | head -n 100 | tail -n 10

and so on.