On Friday 29 July 2005 15:11, Jerry Feldman wrote:
On Thursday 28 July 2005 9:02 pm, robert guru wrote:
hallo,
there is any shell command that compress and split a big sized file into many smaller compressed files for example a data file (file.data) with the size of 15 Mega bytes will compressed (by tar command for example) and divided to many smaller files of 3 mega each file (file.data1.zip, file.data2.zip .... ), because i have to email those files as attachments.
PS: I would like that the zipped files will be recognized and gathered by windows too (like Win-rare tool)..
The split(1) command will do this for you. I don't know what compatibility it has with Windows, but if you install Cygwin (or possibly Microsoft Unix Tools) you should be ok.
split will just cut the files in pieces, will not add any supplemental headers and such. Simple and effective. To join: cat file-parts.* >> complete-file But for windows compatibility see zipsplit -n