Linux Shell Split 命令

PLIT(1)                         User Commands                        SPLIT(1)

NAME
       split - split a file into pieces

SYNOPSIS
       split [OPTION] [INPUT [PREFIX]]

DESCRIPTION
       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  ## 定义后缀长度默认为2
              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.

参与0

0同行回答

“答”则兼济天下,请您为题主分忧!

提问者

擅长领域: 服务器Linux云计算
评论110

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2013-07-22
  • 关注会员:0 人
  • 问题浏览:1975
  • X社区推广