zoukankan      html  css  js  c++  java
  • 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>


  • 相关阅读:
    Part 1R 函数、极限和连续
    Part 1 函数、极限与连续
    C++继承与派生
    VUE笔记
    VUE错误记录
    VUE笔记
    VUE笔记
    VUE笔记
    JS学习笔记
    Node.js笔记 请求方式 GET
  • 原文地址:https://www.cnblogs.com/wangkangluo1/p/2455067.html
Copyright © 2011-2022 走看看