- Департамент ИТ
- How to split big files on MAC?
- 3 Answers 3
- Update.
- File Splitter 4+
- Khoa Tran Anh
- Screenshots
- Description
- Ratings and Reviews
- Split files change extension to .001, .002, .003, etc.
- Not user friendly at all
- Dear Billy Malcom
- App Privacy
- No Details Provided
- How To Create A Split Zipped Archive From Mac OS X Terminal
- Split file mac os
- Hint Options
Департамент ИТ
Выполнить эту операцию можно многими сторонними программами. Но данный способ универсальный и не требует установки дополнительного программного обеспечения. Также разделенные данным способом файлы можно собрать потом в Windows. Единственный минус может быть в использовании непривычного интерфейса командной строки.
Поместим для удобства файл, который нужно разделить в отдельную папку, например, папку folder и откроем командную строку (Рис. 1).
Перейдем в командной строке в нужную папку и убедимся, что файл находится там (Рис. 2).
Разделим файл example.iso по 10 мегабайт, использую команду: «zip -s 10m example.zip example.iso» (Рис. 3).
Готово. Файлы: example.z01 example.z02 example.zip можно передавать тем или иным способом.
Для того, чтобы собрать файлы и разархивировать на другом компьютере Mac OS X можно использовать следующие команды:
«cat example.z01 example.z02 example.zip > example_full.zip»
«unzip example_full.zip»
Для разархивирования под Windows достаточно лишь положить файлы example.z01 example.z02 example.zip в одну папку и разархивировать (Рис. 5).
Источник
How to split big files on MAC?
I have a 5 GB file on my MAC and can not copy it on flash memory or external hard formatted with FAT. How I can split it to some smaller files
3 Answers 3
You can use this command on the shell:
and for recovering it
I hope it be useful for you!
I needed a bit more detail than Hamed’s answer offered, here’s what works for me, based on comments at hints.macworld.com:
This results in as many 1024mb files as required, (and one smaller file at the end) like so:
- YourFile.iso.aa
- YourFile.iso.ab
- .
- YourFile.iso.af (the last file will be less than 1024mb)
I like to use the original filename and add . at the end so that it’s really clear what the file is at a glance.
I chose 1024mb files because VOBs seem to be that size, and Toast splits files to 1024mb, too — they must have a good reason!
To join these up again:
Note that the first argument here ends in .*, which will get all the aa, ab, ac, etc at once.
Also, if the file you’re producing already exists, it is silently overwritten (no renamed duplicate like in Finder). The mac version of split is slightly different to the linux version, it seems (for one, numeric suffixes (-d) are not supported).
Update.
Revisiting this following Andy Ibanez’s comment that his before and after didn’t match. here’s my test:
I’m on OSX, but using bash from homebrew, and I been bitten by discrepancies between OS’s before. maybe someone else can suggest a reason for md5’s not matching in the above scenario.
Источник
File Splitter 4+
Khoa Tran Anh
Screenshots
Description
Split and join file on Mac OSX.
Ratings and Reviews
Split files change extension to .001, .002, .003, etc.
I want to split .txt files, which this does. But the extension of output files is different. For example .txt becomes multiple files with ext txt.001, txt.002, txt.003, etc.
These get misidentified as rar files.
Author should change program to rename files as 001.txt, 002.txt, .003.txt
Support page is 404 NOT FOUND
Not user friendly at all
I don’t know if this app is simply malfunctioning and it isn’t actually supposed to work this way, but it isn’t at all user friendly. I am trying to use it to join three large files that were too big to email and it will only allow me to select the first file. It won’t allow me to select the other files to be joined. I tried trashing it and reinstalling it and it still won’t allow me to select any other file besides the first file to be joined. I tried accessing the help function but that was no help. I’m not sure why there isn’t any tutorial or other helpful information that goes along with the download. Maybe you have to be a software engineer to figure this thing out. Also- “File Splitter Support” is a non-functional link. Maybe this App actually works really well and I just can’t figure out how to use it. If that’s the case- I sure wish I knew how!
Dear Billy Malcom
This is not a program that is made to join two mp3 files. For that you need a Digital Audio Workstation of some sort. I suggest Garageband or Audacity. This program splits files that are too large to upload to file hosts or send via email. This is not crap, it functions just as it should. It’s you who is malfunctioning.
App Privacy
The developer, Khoa Tran Anh , has not provided details about its privacy practices and handling of data to Apple.
No Details Provided
The developer will be required to provide privacy details when they submit their next app update.
Источник
How To Create A Split Zipped Archive From Mac OS X Terminal
Apr 15, 2013
Comment
OS X comes with the aptly named Archive Utility that can be used to extract contents of compressed zip files, or create zipped archives of your own from your files and folders via the options provided in the right-click context menu. With no UI to speak of, the app works in the background and is fairly basic. What the default utility can’t do is create an archive of a folder that’s split into smaller zip files that can later be extracted as a whole into a single folder. There are several third-party apps available that allow you to do this but if you just want to quickly do it without using a third-party app, and don’t mind typing in a command for the purpose, you can easily do so from Terminal. In what follows, we are going to show you how to use a Terminal command to easily create split zip archives of the contents of any folder.
You need only run a simple command to create the split archive, but it’s important that you understand its syntax in order to customize it for your needs. The command is as follows:
As the name suggests, the MaximumSize part is the maximum possible size each split file should be. It is specified as a number and is in MB by default. If you want to change the file size but keep it in MB, simply change the number. If you would like the file size to be measured in other units, follow the number with k for KB, g for GB, and t for TB. ArchiveName.zip is the name that the primary zip file of the archive will be saved as, and FolderName/ is the folder containing everything you want to pack in this archive.
An example would be:
The above example will compress everything in FolderName/ into multiple split archives of 3GB maximum each, with the name of the main archive file being archive.zip.
You should not drag & drop the folder you want to archive on to the Terminal because it adds the folder’s entire path to the archive. This means that if you’ve decided to archive User/YourUserName/Desktop/pictures, the archive that’s created will be extracted in to a folder called User and it will follow the directory structure that was in the folder’s original path. To avoid this, type the name of the folder yourself, or delete the path after you’ve dragged & dropped the folder to Terminal. Unarchiving will be slightly tricky, since the Archive Utility will not be able to extract the zipped file. You can easily turn to free apps like The Unarchiver, which is very famous for the OS X platform. Make sure you do not extract the contents of the archive to the same location as the original folder.
There aer numerous apps available that allow you to create split archives, so if you think using this Terminal command is difficult, you can use iPackr instead.
Источник
Split file mac os
It appears that OSX 10.8 removed the tar --tape-length flag, and I see no other way to create split tar archives as described in this hint.
One alternative is to create split zip files using the zip tool provided with OS X.
As described in man zip , the resulting files are not just one big zip file that has been split into pieces, and thus they cannot gracefully be concatenated back together as described in another hint, so this differs from simply using the split command. I needed to send files to a Windows user with 7zip, so split was probably out of the question.
To get 4699717632 byte files that would fit on a DVD I used zip -s 4482m output.zip /source/directory
[kirkmc adds: I’m on the road with only my iPad, so I havent been able to test this.]
- Currently 2.33 / 5
You rated: 1 / 5 (6 votes cast)
Hint Options
The -s parameter splits the archive into multiple zipped files fine, but how do I unzip them? Using unzip from the command only looks at the very last file in the archive, and when you specify the first file (.z01), it errors out with:
$ unzip bws.z01
Archive: bws.z01
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of bws.z01 or
bws.z01.zip, and cannot find bws.z01.ZIP, period.
The Unarchiver (free in MAS), unzips the split zip just fine, but hell if I can’t find a way to get unzip at the command line to do the same thing.
Why not create the zip file and then use the split command to make your chunks? Those files can simply be concatenated and unzipped.
Exactly. The way to do this, after you create TheBigZipFile.zip (note that I am taking the size of each segment from the article, 4482 MB): That will leave you with several files called TheSegmentaa, TheSegmentab, etc. To concatenate on a Mac: And on the DOS prompt of a Windows machine (oh, the horror!): You can verify that all three big files are identical my getting the MD5 checksum or similar method (not sure how to do that on Windows without extra tools, though).
You and I could definitely do that, and that is certainly the way I would’ve gone if I wanted to split up a tgz file. My mom… not so much, especially not on Windows. If she were using a Mac I probably would’ve gone with a sparse bundle DMG file.
As I mentioned in the OP, the man page for zip explains the difference between that approach and using the split zip method.
Split zip is just one alternative to this problem, and it happens to have built in support on both Windows and OS X.
The rar command line tool can be downloaded as (never ending) trialware at rarlab.com. Unrar is free on all platforms. Usage: «rar a -m0 -v4700000 archivename filename(s)» where a = add (create archive), -m0 = no compression (-m5 = max compression, not useful for video plus it takes much longer), -v with max size in KB (1000 bytes, append ‘k’ for size in 1024 bytes: -v4589843k).
«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.
gnutar —tape-length=102400 -cMv —file=tar_archive.
Note, I would *NOT* change the link to gnutar. There be dragons.
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!
Источник