Split Merge File command under linux

Split and merge file operations.

Split and merge files

Sometimes after the splitting of large files more convenient transport.
With a picture as an example:
segmentation: segmentation default

1
2
3
4
5
6
7
8
9
10
11
12
13
[jimo @ jimo-pc shell] $ ls -lh 
总用amount 1.5M
-Rwxrwxrwx 1 Jimo Jimo 1.5M 9 May 20:31 1.Png 17
[Jimo Atto Jimo-Pc Shell] $ Split 1.Png
[Jimo Atto Jimo- pc shell] $ ls -lh
总用amount 2.9M
-Rwxrwxrwx 1 Jimo Jimo 1.5M 9 May 20:31 1.Png 17
-Rw-R - R-- 1 Jimo Jimo 254K 11 May 18:31 Xaa 12
-Rw- r - r-- 1 jimo jimo 259K 11 May 18:31 Xab 12
-Rw-R - R-- 1 Jimo Jimo 264K 11 May 18:31 Xac 12
-Rw-R - R-- 1 Jimo Jimo 238K 11 May 18:31 Xad 12
-Rw-R - R-- 1 Jimo Jimo 270K 11 May 18:31 Xae 12
-Rw-R - R-- 1 Jimo Jimo 184K 11 May 12 18:31 xaf

merge:

1
2
3
4
5
6
7
8
9
10
[jimo @ jimo-pc shell] $ ls -lh 
总用amount 4.4M
-Rwxrwxrwx 1 Jimo Jimo 1.5M 9 May 20:31 1.Png 17
-Rw-R - R-- 1 Jimo Jimo 1.5M 11 May 12 18 : 32 2.Png
-Rw-R - R-- 1 Jimo Jimo 254K 11 May 18:31 Xaa 12
-Rw-R - R-- 1 Jimo Jimo 259K 11 May 18:31 Xab 12
-Rw-R- -r-- 1 jimo jimo 264K 11 May 18:31 Xac 12
-Rw-R - R-- 1 Jimo Jimo 238K 11 May 18:31 Xad 12
-Rw-R - R-- 1 Jimo Jimo 270K 11 May 18:31 Xae 12
-Rw-R - R-- 1 Jimo Jimo 184K 11 May 12 18:31 xaf

Specify the size of each file:

1
2
3
4
5
6
7
8
9
[Jimo Atto Jimo-Pc Shell] $ Split 1.Png -B 500KB 
[Jimo Atto Jimo-Pc Shell] $ Ls -Lh
总用amount 4.4M
-Rwxrwxrwx 1 Jimo Jimo 1.5M 9 May 20:31 1.Png 17
-Rw -r - r-- 1 jimo jimo 1.5M 11 May 6:32 PM 2.Png 12
-Rw-R - R-- 1 Jimo Jimo 489K 11 May 6:35 PM Xaa 12
-Rw-R - R-- 1 jimo jimo 489K 11 May 18:35 Xab 12
-Rw-R - R-- 1 jimo jimo 489K 11 May 18:35 Xac 12
-Rw-R - R-- 1 Jimo Jimo 972 11 May 12 18:35 xad

Similar commands can see csplit

: Original large column  split merge file command linux


Guess you like

Origin www.cnblogs.com/wangziqiang123/p/11640360.html