sed -n '3,10p' < file.txtYou can also use a combination of `head` and `tail`.
Programming Tips - Extract lines from a text file
Date: 2021apr30
OS: Linix
Language: bash
Q. Extract lines from a text file
A. Eg to get lines 3 to 10 inclusive: