John, On Saturday 23 October 2004 11:41, John N. Alegre wrote:
How can I join a series of binary files, file.000, file.001,file.002 .. etc.etc?
I have tried
for i in file.0* do cat $i done > file.whatever
This does work to create the large file but the sum is not correct.
First of all, it's easier to just do this: % cat file.0* >file.whatever This (or your loop) will indeed simply concatenate the input files with no further manipulation or alteration of their contents. Next, what sum do you mean? The output of "sum", "cksum" or "md5sum", perhaps? The sums created by those programs on the concatenation of several input files will never be equal to the sum of each individual file's checksum. All of the stock Unix / Linux checksumming programs compute values that are sensitive not only to the bytes (or words or even 128-bit chunks) of the file, but also to their order.
Thanks john
Randall Schulz