[SATLUG] [OT] Apple dmg's compressible?

Bob Tracy rct at gherkin.frus.com
Fri Feb 9 16:18:51 CST 2007


pixelnate wrote:
> Greg Willden wrote:
> > Doesn't OS X have the split command?
> > Just split the file in two pieces.  Put each piece on a CD.  Copy the
> > pieces to your home machine and recombine them.
> 
> Or you could use Toast to break it up across two discs.

Using "split" was closer in spirit to the UN*X way of doing things.  I
ended up using "dd" to break the file into two chunks, each of which
would comfortably fit on a CD.

Example:
	dd if=huge_file of=chunk.0 bs=1K count=500K
	dd if=huge_file of=chunk.1 bs=1K skip=500K

gives you a 500MB chunk.0 file, with the remainder going into chunk.1.
Putting Humpty Dumpty back together again is as simple as

	cat chunk.0 chunk.1 > huge_file

once the pieces have been retrieved from their respective CDs.

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct at frus.com
-----------------------------------------------------------------------


More information about the SATLUG mailing list