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 ~]# 
  • 相关阅读:
    Linux基础ls命令
    Linux基础tree命令
    Java银行调度系统
    Java交通灯系统
    Java反射
    Java基础IO流
    Java多线程
    Java集合框架
    Springmvc的一些属性功能
    JS
  • 原文地址:https://www.cnblogs.com/gaojian/p/2851494.html
Copyright © 2011-2022 走看看