Split and cat

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Fri Aug 13 05:23:54 PDT 2004


Once upon a time (on Friday 13 August 2004 15:44), dienadel wrote :
 > I have a file with size 2,5 Mb. I want to cut it into two pieces to save
 > them in a disquette. For it, i've made:
[--SNIP--]
 > split --bytes=1250000 original.file
[--SNIP--]
 > cat xaa xab > original.file.2
[--SNIP--]
 > Is ok this way?

Yes, that's OK. If you want to check on the orther end:

split --bytes=1250000 original.file
md5sum original.file > md5.sum
<transport all files>
cat x* > original.file
md5sum -c md5.sum

That shall do the trick.

Yann.

-- 
.-----------------.--------------------.-------------------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\   ASCII RIBBON            |
| +0/33 662376056 | Software  Designer | \ /     CAMPAIGN           ^  |
| --==< °_° >==-- °---.----------------:  X    AGAINST HTML        /e\ |
| web: ymorin.free.fr | SETI at home 3755 | / \  IN MAIL & NEWS       """ |
°---------------------°----------------°-------------------------------°
 \__ np:  [Stopped] __________________________________________________/




More information about the lfs-chat mailing list