¿Has necesitado picar un archivo en varias partes? Hoy hice un Appliance de VirtualBox que ocupa 2.8 GB pero tengo un pendrive de 2 GB (1.8 GB) . Entonces, ¿Qué puedo hacer?…fácil, usar los comandos split y cat.
Split
Digamos que quieres picar el archivo Draco.vmdk (un disco VirtualBox) en partes más pequeñas de 1.5 GB, entonces solo escribe:
split -b 1500m Draco.vmdk
Cat
Para poner todo junto solo usa:
cat x* > Draco.vmdk

Planeta Linux
#1 by Skip on 07/06/2010 - 11:43
Nice, this is what I was looking to find out… I would like to see some output though… For instance, since I first saw some stuff on using the split command, they mentioned the way it names the output files, per your example, I’m guessing x?????
Anyways, thanks for letting me know it works with virtual disks!
#2 by Luis Gallardo on 08/06/2010 - 1:38
@Skip Yes, the split command creates output files with this format xaa, xab, xac, etc. But you can change the prefix. For instance,
The above command makes the following files:
Cheers!!