linux 下查看指定行100,200行的文件
三种办法:sed、awk、head
sed -n '100,200p' inputfile
awk 'NR>=100&&NR<=200{print}' inputfile
head -200 inputfile|tail -100
本文来自博客园,作者:浅笑若风,转载请注明原文链接:https://www.cnblogs.com/qianxiaoruofeng/p/15564430.html
学之如大海汪洋,薄积厚发,后发制人,大学之道也。

浙公网安备 33010602011771号