先写方法
Linux:
- [hcon01:/home1/jinxing] ls -alh dump.sql.gz
- -rw-r--r-- 1 jinxing other 1.6G 2014-11-0518:43 dump.sql.gz
- [hcon01:/home1/jinxing] split -b 500m dump.sql.gz dump.sql.gz_
- [hcon01:/home1/jinxing] ll -alh dump.sql*
- -rw-r--r-- 1 jinxing other 1.6G 2014-11-0518:43 dump.sql.gz
- -rw-r--r-- 1 jinxing other 500M 2014-12-1617:31 dump.sql.gz_aa
- -rw-r--r-- 1 jinxing other 500M 2014-12-1617:31 dump.sql.gz_ab
- -rw-r--r-- 1 jinxing other 500M 2014-12-1617:31 dump.sql.gz_ac
- -rw-r--r-- 1 jinxing other 97M 2014-12-1617:31 dump.sql.gz_ad
Windows
- D:\tmp> copy dump.sql.gz_aa /B+dump.sql.gz_ab /B+dump.sql.gz_ac /B+dump.sql.gz_ad dump.gz
- dump.sql.gz_aa
- dump.sql.gz_ab
- dump.sql.gz_ac
- dump.sql.gz_ad
- 已复制 1个文件
- D:\tmp>dir
- 2014/12/1615:59 .
- 2014/12/1615:59 ..
- 2014/12/0916:2810,945,912,331 dump.gz
- ......
- .....
PS:合并后的文件有时候会和源文件不一致的可能性。
对准确性要求高的需求, 需要比较hash值,md5