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:
sed -n '3,10p' < file.txt
You can also use a combination of `head` and `tail`.