1,查找文件text中第三行的内容

     命令: sed -n '3p' text

 

2,查找文件text中第二行到第四行的内容

    命令: sed -n '2,4p' text

相关文章: