全部博文(108)
分类: LINUX
2013-07-21 09:40:18
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.