Shell,split与cat 对文件分割及合并

指定分割后文件行数

split -l 300 large_file.txt new_file_prefix  

指定分割后文件大小

split -b 10m large_file.bin new_file_prefix  

用cat进行文件合并

cat small_files* > large_file  
cat file1.out file2.out > file3.out  

Grizzly

Never say never!