zoukankan      html  css  js  c++  java
  • linux nl命令与逻辑页

    http://www.gnu.org/software/coreutils/manual/coreutils.html#nl-invocation

    The beginnings of the sections of logical pages are indicated in the input file by a line containing exactly one of these delimiter strings:

    ‘\:\:\:’
    start of header;
    ‘\:\:’
    start of body;
    ‘\:’
    start of footer.

    我的例子:

    [root@localhost ~]# cat test01.txt
    \:\:\:
    header--01
    \:\:
    body--0001-line1
    body--0001-line2
    \:
    footer--01
    \:\:\:
    header--02
    \:\:
    body--0002-line1
    body--0002-line2
    \:
    footer--02
    [root@localhost ~]# nl test01.txt
    
           header--01
    
         1  body--0001-line1
         2  body--0001-line2
    
           footer--01
    
           header--02
    
         1  body--0002-line1
         2  body--0002-line2
    
           footer--02
    [root@localhost ~]# 
  • 相关阅读:
    sqli29-32环境搭建(winserver)
    sqli-labs(Basic)
    SQL语句
    8月10号
    8月9号
    第五周进度报告
    8月8号
    8月7号
    8月6号
    大道至简读后感
  • 原文地址:https://www.cnblogs.com/gaojian/p/2851494.html
Copyright © 2011-2022 走看看