[flalug] Tips :: split - split big files into smaller files

From: Mitul Savani (mitinlinuxworld@yahoo.com)
Date: Thu Oct 19 2006 - 03:21:11 EDT


You can use below mentioned method when you required to split large files in to smaller pieces:
  Syntax:
  
  root :~# split -b 2000 FILENAME
  
  split is the command
  -b stands for bytes
  
  2000b is nearly 2mb (you can change this to whatever you want too for size)
  FILENAME is the filename of file you want to split.
  
  Now, to get that many pieces BACK together again with the CAT command:
  
  put all the "pieces" into one directory and then run the command
  
  root :~# cat * > NEWFILE
  
  Thanks,
  
  

 Linux Web Administrator Guide
    Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To

                 
---------------------------------
 Try the all-new Yahoo! Mail . "The New Version is radically easier to use" – The Wall Street Journal



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:11:26 EDT