sed 打印文件的第 10-20 行 $ sed -n '10, 20p' input.txt $ awk '10<=NR && NR <= 20' input.txt $ head -20 input.txt | tail -11