split 是把一个文件拆分为长度或体积相等的若干文件。
split [参数选项] infile [outfile]
split 把输入的文件拆分为若干体积或长度相等的文件,输入文件保持不变,只是把结果拆分结果写到outfileaa、outfileab等文件中。如果我们不指定outfile,被拆分后的文件会写到 xaa、xab等文件。
参数
-a, --suffix-length=N use suffixes of length N (default 2)
-b, --bytes=SIZE put SIZE bytes per output file,以体积为单位的拆分,约定每拆分后每个文件的大小 ,b代表512B,k代表1KB,m代表1MB。-b n[bkm]
-C, --line-bytes=SIZE put at most SIZE bytes of lines per output file,-C bytes[bkm]
-d, --numeric-suffixes use numeric suffixes instead of alphabetic
-l, --lines=NUMBER put NUMBER lines per output file,把infile拆分为具有n行的段,默认值为1000,-l n1000
split [参数选项] infile [outfile]
split 把输入的文件拆分为若干体积或长度相等的文件,输入文件保持不变,只是把结果拆分结果写到outfileaa、outfileab等文件中。如果我们不指定outfile,被拆分后的文件会写到 xaa、xab等文件。
参数
-a, --suffix-length=N use suffixes of length N (default 2)
-b, --bytes=SIZE put SIZE bytes per output file,以体积为单位的拆分,约定每拆分后每个文件的大小 ,b代表512B,k代表1KB,m代表1MB。-b n[bkm]
-C, --line-bytes=SIZE put at most SIZE bytes of lines per output file,-C bytes[bkm]
-d, --numeric-suffixes use numeric suffixes instead of alphabetic
-l, --lines=NUMBER put NUMBER lines per output file,把infile拆分为具有n行的段,默认值为1000,-l n1000
10万+

被折叠的 条评论
为什么被折叠?



