bash 取文件特定行

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

可以用sed

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

非常方便!

原文地址:https://www.cnblogs.com/foreverycc/p/5683323.html