|
|
How do I break up a file into smaller pieces?
|
|
|
|
Senior User
Join Date: Mar 2002
Location: Golden, CO
Status:
Offline
|
|
Hey everyone, I know this question has been sort of asked before but not quite. Anyway, I have a file that is roughly 10MB and I need to break it up into smaller chunks so that it's a little more e-mail friendly. Any ideas on how I can do this? I saw that Disk Copy can sort of do this, but the smallest chunk you're allowed to make is 90MB. That's just way too big.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Aug 2001
Location: Capitol City
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status:
Offline
|
|
...and the obvious successor to this question is "how can we rejoin the segments?"
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2002
Location: Golden, CO
Status:
Offline
|
|
I'm perfectly comfortable with the command line, but I doubt the person I'm sending it to is. As for that app, thanks for the tip but if that's the only solution I think I'd rather post the file on my iDisk and have him download it that way. There's got to be a way to make smaller disk images. Apple did it with the Panther CD images; those are only about 29 MB.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status:
Offline
|
|
Originally posted by Geobunny:
...and the obvious successor to this question is "how can we rejoin the segments?"
Code:
[cider:~] utidjian% mkdir test_split
[cider:~] utidjian% cd test_split
[cider:~/test_split] utidjian% vi helloworld.c
[cider:~/test_split] utidjian% cat helloworld.c
#include <stdio.h>
main(){
printf("Hello World!\n");
return(0);
}
[cider:~/test_split] utidjian% cc helloworld.c
[cider:~/test_split] utidjian% ./a.out
Hello World!
[cider:~/test_split] utidjian% ls -l
-rwxrwxrwx 1 utidjian utidjian 11572 Sep 9 21:16 a.out
-rw-r--r-- 1 utidjian utidjian 68 Sep 9 21:23 helloworld.c
[cider:~/test_split] utidjian% split -b2k a.out
[cider:~/test_split] utidjian% ls -l
-rwxrwxrwx 1 utidjian utidjian 11572 Sep 9 21:16 a.out
-rw-r--r-- 1 utidjian utidjian 68 Sep 9 21:23 helloworld.c
-rw-rw-rw- 1 utidjian utidjian 2048 Sep 9 21:30 xaa
-rw-rw-rw- 1 utidjian utidjian 2048 Sep 9 21:30 xab
-rw-rw-rw- 1 utidjian utidjian 2048 Sep 9 21:30 xac
-rw-rw-rw- 1 utidjian utidjian 2048 Sep 9 21:30 xad
-rw-rw-rw- 1 utidjian utidjian 2048 Sep 9 21:30 xae
-rw-rw-rw- 1 utidjian utidjian 1332 Sep 9 21:30 xaf
[cider:~/test_split] utidjian% cat x[a-z][a-z] > foo
[cider:~/test_split] utidjian% chmod +x foo
[cider:~/test_split] utidjian% rm x*
[cider:~/test_split] utidjian% ls -l
-rwxrwxrwx 1 utidjian utidjian 11572 Sep 9 21:16 a.out
-rwxrwxrwx 1 utidjian utidjian 11572 Sep 9 21:35 foo
-rw-r--r-- 1 utidjian utidjian 68 Sep 9 21:23 helloworld.c
[cider:~/test_split] utidjian% ./foo
Hello World!
[cider:~/test_split] utidjian%
QED
|
-DU-...etc...
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
Stuffit used to come with a "Drop Segment" utility that would do it. If you have an old version of the Stuffit suite, that would do it.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status:
Offline
|
|
Originally posted by parsec_kadets:
I'm perfectly comfortable with the command line, but I doubt the person I'm sending it to is.
Oooops forgot about that.
Should be AppleScriptable (or whatever)
|
-DU-...etc...
|
|
|
|
|
|
|
|
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status:
Offline
|
|
Originally posted by Brass:
Stuffit used to come with a "Drop Segment" utility that would do it. If you have an old version of the Stuffit suite, that would do it.
It would be a interesting feature for Mail.app to have an option to split files to some palatable size... and they could be auto-reassembled at the receiving end. But it would only work between similar email apps.
Could lead to some interesting problems if Apple had a mail app that executed certain things depending on email types. Much evil could come that way.
|
-DU-...etc...
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Nov 2000
Location: Tennessee
Status:
Offline
|
|
Stuffit Deluxe 7.0 can make any size segments that automatically rejoin.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status:
Offline
|
|
There's always .rar files. Although Stuffit chokes on them sometimes.
|
We need less Democrats and Republicans, and more people that think for themselves.
infinite expanse
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status:
Offline
|
|
Originally posted by parsec_kadets:
I saw that Disk Copy can sort of do this, but the smallest chunk you're allowed to make is 90MB. That's just way too big.
The command line program hdiutil (Disk Copy's engine) can produce segments of any size. Sadly, the GUI program is very limited in its options. So, to create segmented disk images, you would be better off with the command line or DropDMG ($10): http://www.c-command.com/dropdmg/index.shtml
|
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Apr 2003
Location: Seattle
Status:
Offline
|
|
There is little utility called Split&Concat that is on VersionTracker. I use it all the time and never had any problems.
Doug
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2002
Status:
Offline
|
|
Originally posted by gatorparrots:
The command line program hdiutil (Disk Copy's engine) can produce segments of any size. Sadly, the GUI program is very limited in its options. So, to create segmented disk images, you would be better off with the command line or DropDMG ($10): http://www.c-command.com/dropdmg/index.shtml
Parsec, hdiutil was the prog i was thinking of in #macnn!
I knew I wasn't crazy!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|