Split and cat

Björn Lindberg d95-bli at nada.kth.se
Fri Aug 13 04:50:07 PDT 2004

dienadel <no at use.this.es> writes:

> Hello,
> 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:
> split --bytes=1250000 original.file
> And have saved the two resultant files (xaa and xab) in 2 disquettes. ok.
> When i want to make de original file, i copy them in the HD i make:
> cat xaa xab > original.file.2
> Then original.file=original.file.2 in size. I have probed it with a mp3 and
> all is perfect and sounds the same way.
> But as is the first time i made it i don't know if this the correct way, or
> there is another way more secure o something. Is a file that is really
> important and i don't want to lose it.
> Is ok this way?

Yes. If you are worried, you can check that the two files are
identical with cmp(1).


More information about the lfs-chat mailing list