cat

1、从第3000行开始,显示1000行。即显示3000~3999行

cat filename | tail -n +3000 | head -n 1000

2、显示1000行到3000行

cat filename| head -n 3000 | tail -n +1000