Linux命令:split
2007-11-22 11:44
190 查看
Linux命令:split
英文版本,欢迎翻译:
ABOUT SPLIT
Split a file into pieces.
SYNTAX
split [-linecount | -l linecount ] [ -a suffixlength ] [file [name] ]
split -b n [k | m] [ -a suffixlength ] [ file [name]]
-linecount | -l linecount Number of lines in each piece. Defaults to 1000 lines. -a suffixlength Use suffixlength letters to form the suffix portion of the filenames of the split file. If -a is not specified, the default suffix length is 2. If the sum of the name operand and the suffixlength option-argument would create a filename exceeding NAME_MAX bytes, an error will result; split will exit with a diagnostic message and no files will be created. -b n Split a file into pieces n bytes in size. -b n k Split a file into pieces n*1024 bytes in size. -b n m Split a file into pieces n*1048576 bytes in size. file The path name of the ordinary file to be split. If no input file is given or file is -, the standard input will be used. name The prefix to be used for each of the files resulting from the split operation. If no name argument is given, x will be used as the prefix of the output files. The combined length of the basename of prefix and suffixlength cannot exceed NAME_MAX bytes; see OPTIONS.
EXAMPLES
split -b 22 newfile.txt new - would split the file "newfile.txt" into three separate files called newaa, newab and newac each file the size of 22.
split -l 300 file.txt new - would split the file "newfile.txt" into files beginning with the name "new" each containing 300 lines of text each
功能说明:切割文件。 语 法:split [--help][--version][-<行数>][-b <字节>][-C <字节>][-l <行数>][要切割的文件][输出文件名]
补充说明:split可将文件切成较小的文件,预设每1000行会切成一个小文件。
参 数: -<行数>或-l<行数> 指定每多少行就要切成一个小文件。 -b<字节> 指定每多少字就要切成一个小文件。 -C<字节> 与-b参数类似,但切割时尽量维持每行的完整性。 --help 显示帮助。 --version 显示版本信息。 [输出文件名] 设置切割後文件的前置文件名,split会自动在前置文件名後再加上编号。
英文版本,欢迎翻译:
ABOUT SPLIT
Split a file into pieces.
SYNTAX
split [-linecount | -l linecount ] [ -a suffixlength ] [file [name] ]
split -b n [k | m] [ -a suffixlength ] [ file [name]]
-linecount | -l linecount Number of lines in each piece. Defaults to 1000 lines. -a suffixlength Use suffixlength letters to form the suffix portion of the filenames of the split file. If -a is not specified, the default suffix length is 2. If the sum of the name operand and the suffixlength option-argument would create a filename exceeding NAME_MAX bytes, an error will result; split will exit with a diagnostic message and no files will be created. -b n Split a file into pieces n bytes in size. -b n k Split a file into pieces n*1024 bytes in size. -b n m Split a file into pieces n*1048576 bytes in size. file The path name of the ordinary file to be split. If no input file is given or file is -, the standard input will be used. name The prefix to be used for each of the files resulting from the split operation. If no name argument is given, x will be used as the prefix of the output files. The combined length of the basename of prefix and suffixlength cannot exceed NAME_MAX bytes; see OPTIONS.
EXAMPLES
split -b 22 newfile.txt new - would split the file "newfile.txt" into three separate files called newaa, newab and newac each file the size of 22.
split -l 300 file.txt new - would split the file "newfile.txt" into files beginning with the name "new" each containing 300 lines of text each
相关文章推荐
- linux命令之分割命令:split
- Linux下的split 命令(将一个大文件根据行数平均分成若干个小文件)
- linux大文件分割 split命令
- linux中的join、paste、split、tr命令
- linux split 命令
- 图解Linux命令之--split命令
- Linux管线命令 - cut,grep,sort,uniq,wc,tee,tr,col,join,paste,expand,split,xargs
- Linux下的split 命令(将一个大文件根据行数平均分成若干个小文件)
- Linux split命令实例
- linux命令---split
- Linux之split命令详解
- Linux文件分割与合并:split & cat命令
- Linux split命令参数及用法详解---linux分割文件命令
- Linux常用命令:split
- Linux下的split 命令(将一个大文件根据行数平均分成若干个小文件) 及其他命令
- Linux基础命令:文本处理工具之 split , cat
- linux大文件分割 split命令
- linux大文件分割 split命令 - youxin
- Linux中的split命令,文件切割