sed查找文件中某一行

1、查找文件text中第五行的内容

     命令: sed -n '5p' text

2、查找文件text中第五行到第十行的内容

     命令: sed -n '5,10p' text

原文地址:https://www.cnblogs.com/sxFu/p/15147037.html