如果是第n行
awk 'FNR==n{print}' InputFile
将 n 替换成你要的行数
如果是 n 到 m行
awk 'FNR>=n && FNR <=m{print}' InputFile
awk 'NR=起始行号,NR=终止行号' datafile