Re: [suse-programming-e] SuSE 8.0: Compress and split a big sized file into smaller files
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. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
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
On Friday 29 July 2005 6:11 am, 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.
There is a command line rar package for linux, which should be compatible with the windows version. I've used it with SuSE 9.1, don't know if it will work with 8.0. -- Don
participants (3)
-
Don Raboud
-
Jerry Feldman
-
Silviu Marin-Caea