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 |
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 |
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.
|
Yes, zipsplit is indeed a simpler alternative, and included with Solaris, as gnu tar and split are by the way.
|
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. |