LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Usage of "k size" option in "tar" ?? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/usage-of-k-size-option-in-tar-578193/)

kcarun 08-19-2007 09:19 AM

Usage of "k size" option in "tar" ??
 
Friends,

In tar's man page there is an optin to split the output file to desired size. I searched in SUN's
Documentation Site for examples and get more details!
But I failed to get the desired Output.

( I have to send 100 pictures to my friend, but gmail will support upto 10 MB in a single mail, so I planned to zip the files in 10MB size,His OS in Windows )
Kindly Help me !!

reg
ARUN

jlliagre 08-19-2007 03:36 PM

This tar option is designed for fixed size devices output, like tapes or floppies, not files.

You can just use the split command to split your archive (eg:
Code:

split -b 10m file.tar

jschiwal 08-19-2007 05:05 PM

Your tar program must be different from the gnu tar program. The -k option is different. Since you friend is using Windows, you might want to use zipsplit instead. You could also use the split command if you have it and produce an MSDOS script for your friend that uses the "copy \b +" command to join the parts.

jlliagre 08-19-2007 07:23 PM

Yes, zipsplit is indeed a simpler alternative, and included with Solaris, as gnu tar and split are by the way.

kcarun 08-20-2007 02:59 PM

Hi Thanks Everybody, I solved the Problem

bash-3.00$ zipsplit -n 10485760 100MSDCF.zip

Then the file is split to 3 files. (10MB Each)



reg
ARUN


All times are GMT -5. The time now is 07:44 AM.