打印文件指定行

来源:互联网 发布:程序员猝死率多少 编辑:程序博客网 时间:2024/06/05 06:37

Linux打印第7行到第8行的内容

head -n 8 filename | tail -n 2或head -n 8 filename | tail -n +7
原创粉丝点击