LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-19-2007, 09:19 AM   #1
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Rep: Reputation: 15
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
 
Old 08-19-2007, 03:36 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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
 
Old 08-19-2007, 05:05 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 08-19-2007, 07:23 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Yes, zipsplit is indeed a simpler alternative, and included with Solaris, as gnu tar and split are by the way.
 
Old 08-20-2007, 02:59 PM   #5
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Original Poster
Rep: Reputation: 15
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

Last edited by kcarun; 08-20-2007 at 03:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
"Shutdown" and "Restart" option missing after upgrade hansalfredche Mandriva 8 11-02-2006 07:23 AM
Gaim idle time reporting: "x usage" option disappeared DiscoStoo Linux - Software 2 12-23-2004 02:32 PM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration