bash 取文件特定行

比如,想要取某文件10-20行

可以用sed

sed -n '10,20p' XXX.txt 

非常方便!

posted on 2016-07-19 07:13  Forever_YCC  阅读(1429)  评论(0编辑  收藏  举报

导航