linux 下查看指定行100,200行的文件

三种办法:sed、awk、head

sed -n '100,200p' inputfile
awk 'NR>=100&&NR<=200{print}' inputfile
head -200 inputfile|tail -100
posted @ 2021-11-16 23:22  浅笑若风  阅读(755)  评论(0编辑  收藏  举报