作用:将大文件切割成小文件。
参数:-l 按照行数分隔文件
-b 按照大小分隔文件
-d 使用数字做后缀
实例:分隔文件默认1000行
split mylog ; wc -l *
分隔文件20MB
split-b 20M logdata
以数字后缀命名文件
split-d file
将文件全部修改后缀
ls x* |xargs -i mv {} {}.txt
-a length来指定后缀的长度,文件指定文件名的前缀: split_file000
split -b 10k date.file -d -a 3 split_file