573 tutoriels disponibles
Chercher un tutoriel
Bienvenue
sur Shareannonce
 
Ecrit par: Shareannonce
Date création:  28-08-2011
Nombre de vues:  1625
Catégorie:  informatique > apple > logiciel > lion
Note: 
 
   Tutoriel N° 13f

Create Multipart Zip Files

Need to transfer a really large file but are worried that it will fail before completing?

Create a multi-part file using the split command, then join it on the remote server after it transfers. Example: Start with a zipped file (somefile.zip), then run

split -b 10m file.avi someprefix-



That will take somefile.zip, chop it into 10MB pieces and name them “someprefix-aa, someprefix-ab, etc.” Run “man split” for all the options:

split -b number[ k|m ] [-a suffixlength] [filename [prefix] ]


If your file will be split into more than 52 pieces, you’ll need to change the number of suffix length. The default is 2 (a-z, twice).

After transferring the pieces to the remote server, re-assemble them with cat…

cat someprefix-aa someprefix-ab ... > file.avi


 
 
   Autres tutoriels de la même catégorie >
 
ShareAnnonce version 2.0 Tous droits reserves. | Condition d'utilisation | Contact