#在Linux下用split进行文件分割:
SYNOPSIS
split [OPTION]... [INPUT [PREFIX]]
INPUT :Filename
PREFIX:分割生成文件前缀
-------------------------------------------------
OPTION
-a, --suffix-length=N
use suffixes of length N (default 2) 后缀长度默认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 just before each output file is opened
--help display this help and exit
--version
output version information and exit
example :
split -b 3m tata.txt
split -b 3m tata.txt tata
split -a 3 -b 3m tata.txt tata
split -d -a 3 -b 3m tata.txt tata
split -l 300 tata.txt
-------------------------------------------------