Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create split zip files from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create split zip files from the command line
Authored by: kamath on Mar 21, '13 10:36:00PM

Uh, what?

"It appears that OSX 10.8 removed the tar --tape-length flag"

Not really. Our fine friends at Apple have chosen to remind us there are other versions of software beside that provided by GNU. Mac OS X appears to have moved 'tar' to be 'bsdtar' and gnu tar is now 'gnutar'. Actually, it's a symlink. Do 'ls -l /usr/bin/tar' to see.

Try this:

gnutar --tape-length=102400 -cMv --file=tar_archive.{tar,tar-{2..100}} [files to tar]

Note, I would *NOT* change the link to gnutar. There be dragons.



[ Reply to This | # ]
Many thanks!
Authored by: lullabud on Mar 24, '13 04:21:55PM

That is very helpful! I was a little taken aback when I found that normal 'tar' didn't have the --tape-length flag, even for historical purposes. Knowing about gnutar is very helpful, thanks for pointing it out!



[ Reply to This | # ]