How to output lines 800-900 of a file with a unix command?

Viewed 19072

I want to output all lines between a and b in a file.

This works but seems like overkill:

head -n 900 file.txt | tail -n 100

My lack of unix knowledge seems to be the limit here. Any suggestions?

2 Answers
Related