On Sunday 29 July 2007 20:16:31 Alexey Eremenko wrote:
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" ?
cat x* > foo.iso works when the number of files is small enough so it fits on a command line. Otherwise you'd have to do it in steps, or perhaps write a small script to do it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org