User Tools

Site Tools


it:split

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

it:split [2019/06/03 15:50]
pmay created
it:split [2019/06/03 15:50] (current)
pmay
Line 1: Line 1:
 ====== Split ====== ====== Split ======
-Split a file:+ 
 +===== Split a file =====
 <code bash> <code bash>
 split -d -b <​size>​ <​file_to_split>​ <​file_to_split>​-part- split -d -b <​size>​ <​file_to_split>​ <​file_to_split>​-part-
 </​code>​ </​code>​
 The size argument is an integer and optional unit (example: 10K is 10*1024). ​ Units are K,​M,​G,​T,​P,​E,​Z,​Y ​       (powers of 1024) or KB,MB,... (powers of 1000). The size argument is an integer and optional unit (example: 10K is 10*1024). ​ Units are K,​M,​G,​T,​P,​E,​Z,​Y ​       (powers of 1024) or KB,MB,... (powers of 1000).
 +
 +===== Un-Split a file =====
 +<code bash>
 +cat <​file_to_split>​-part-* > <​file_to_split>​
 +</​code>​
  
  
it/split.txt · Last modified: 2019/06/03 15:50 by pmay