[Gllug] Split

will will at hellacool.co.uk
Fri Sep 21 16:00:32 UTC 2001


----- Original Message -----
From: "t.clarke" <tim at seacon.co.uk>
To: <gllug at linux.co.uk>
Sent: Friday, September 21, 2001 4:42 PM
Subject: [Gllug] Split


> Will write re 'splitting' a tar.gz file and then recombining.
>
> I believe re-catting split files together will probably work, but I am not
> sure about splitting.  The unix version of split we use (and I PRESUME
Linux
> versions) split by line count, which means the source file has to be a
line
> sequential file in the first place.   So a gzipped file may not split into
> the chunks you require.
>
> Why not simply try and and see,  and use cmp to compare the reassembled
file
> with the original ?

OK:

#cat f1 f2 f3 f4 > newfile.tar.gz
#cmp oldfile.tar.gz newfile.tar.gz
#

so cmp finds no difference.  It looks like this might just work :-)  Thanks.

Will.


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list