• Split 文件切割 命令


    原文

    Split:按指定的行数截断文件
    格式: split [-n] file [name]
    参数说明:
    -n: 指定截断的每一文件的长度,不指定缺省为1000行
    file: 要截断的文件
    name: 截断后产生的文件的文件名的开头字母,不指定缺省为x,即截断后产生的文件的文件名为xaa,xab….直到xzz
    例:

    split -200 myfile prefix_


    将文件myfile依次截断到名为prefix_aa, prefix_ab, prefix_ac…..的文件中,每一文件的长度为200行

    [root@dbapp101 splits]# split --help
    Usage: split [OPTION] [INPUT [PREFIX]]
    Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default
    size is 1000 lines, and default PREFIX is `x'. With no INPUT, or when INPUT
    is -, read standard input.

    Mandatory arguments to long options are mandatory for short options too.
    -a, --suffix-length=N use suffixes of length N (default 2)
    -b, --bytes=SIZE put SIZE bytes per output file
    -C, --line-bytes=SIZE put at most SIZE bytes of lines per output file
    -d, --numeric-suffixes use numeric suffixes instead of alphabetic
    -l, --lines=NUMBER put NUMBER lines per output file
    --verbose print a diagnostic to standard error just
    before each output file is opened
    --help display this help and exit
    --version output version information and exit

    SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.

    Report bugs to <bug-coreutils@gnu.org>.
    </bug-coreutils@gnu.org>


  • 相关阅读:
    转转帖.NET.GC 浅谈.net托管程序中的资源释放问题 (转帖)
    [转]来谈谈从专业到更专业
    [转]ASP.NET中多国语言的实现
    [转]内向的人如何建立人际网络
    SQL 入门 (代码)
    SQL 查询 (代码)
    关于学生信息处理小代码
    SQL 函数 (代码)
    SQL 链接 (代码)
    SQL 数据表的相关操作
  • 原文地址:https://www.cnblogs.com/wangkangluo1/p/2455067.html
Copyright © 2020-2023  润新知