how to get specific lines of shell output

Shell
sed -n '10,20p' york.txt head -n 20 york.txt | tail -11
Source

Also in Shell: