Mailinglist Archive: opensuse (1632 mails)

< Previous Next >
[opensuse] A real problem: splitting files
  • From: "Alexey Eremenko" <al4321@xxxxxxxxx>
  • Date: Sun, 29 Jul 2007 21:16:31 +0300
  • Message-id: <7fac565a0707291116r32959e34h751df351f350d698@xxxxxxxxxxxxxx>
Hi all !

I came across a problem: splitting files.

How to best approach this problem ?

I have used "split" command:
Like that, to split 1 ISO file into many 1 MB files.
split  -d -b $[1000*1000] --verbose ../visopsys-0.62.iso

But I came across a problem, how-to merge them back?

I did something *very* ugly:
alexey@opensuse102:/F/OSes/test> cp x00 finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x01 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x02 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x03 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x04 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x05 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x06 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x07 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x08 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x09 >> finalfile.iso
alexey@opensuse102:/F/OSes/test> cat x10 >> finalfile.iso
alexey@opensuse102:/F/OSes/test>
alexey@opensuse102:/F/OSes/test> md5sum ../visopsys-0.62.iso
f76eea3e3bbb441570984a7f6fb8d646  ../visopsys-0.62.iso
alexey@opensuse102:/F/OSes/test> md5sum finalfile.iso
f76eea3e3bbb441570984a7f6fb8d646  finalfile.iso

Is there any beautyful command, that is "anti-split" ?
I have tried "join", but this command is very bad: it can only join up
to 2 files.

I have heard about the possibility of multi-volume TAR archives, but I
could not find the right keys in the tar info pages.

Please help me finding the convenient commands to split/join files

-- 
-Alexey Eremenko "Technologov"
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >