head 和 tail
head -20 test.txt| tail -10
sed
sed -n '10,20p' test.txt
awk
awk 'NR>9 && NR<21' test.txt