From owner-freebsd-questions Sun Apr 21 15:15:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ralf.artlogix.com (sense-mcglk-240.oz.net [216.39.168.240]) by hub.freebsd.org (Postfix) with ESMTP id A402937B400 for ; Sun, 21 Apr 2002 15:15:07 -0700 (PDT) Received: by ralf.artlogix.com (Postfix, from userid 1000) id 07FBF1B9C52; Sun, 21 Apr 2002 15:16:56 -0700 (PDT) To: Mark Filipak Cc: freebsd-questions Subject: Re: Mark asks: Easy way to copy CD-ROM > MS-floppy? References: <3CC0CAE5.A8A56319@earthlink.net> <877kn1ptad.fsf@ralf.artlogix.com> <3CC26E9E.1F131018@earthlink.net> <87u1q4rfw0.fsf@ralf.artlogix.com> <3CC3349F.477E899F@earthlink.net> From: Ken McGlothlen Date: 21 Apr 2002 15:16:56 -0700 In-Reply-To: <3CC3349F.477E899F@earthlink.net> Message-ID: <87it6ku27b.fsf@ralf.artlogix.com> Lines: 47 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Filipak writes: | > I do! | > # split -b 1474560 s_apache.tar.gz s_apache.tar.gz. | | Giorgos Keramidas kindly wrote: | > # split -b 1400k s_apache.tar.gz | | Hmmm... would that be 1,400,000 bytes or 1,433,600 bytes? -- How does FBSD | do the math? No matter... (read on before jumpping on the 'reply' button) | | Perhaps Giorgos and Ken can fight this out between themselves and give me | a consistent way to do this. Ken's suggestion seems a little redundant | regarding arguments. Not at all, though it could easily be seen as so. Remember that Unix often provides more than one way to do things (with apologies to Perl hackers), often of equal relevance. First off, for what it's worth, I took the "1474560" from the dd output you provided; that's exactly 1440 KiB. Giorgos took a more conservative approach, and provided a 1400 KiB output (or, if you like, 1433600 bytes). Either one will work; mine *might* save you a floppy, but that's not guaranteed. But you could have used "-b 1440k" instead of "-b 1474560" for an equivalent result. As far as the "redundant" argument, you should know that this: split -b 1440k s_apache.tar.gz will result in a number of files named xaa xab xac and so on. That "redundant" argument defaults to "x" if you don't supply one; by using split -b 1440k s_apache.tar.gz s_apache.tar.gz. (and note the period at the end of that last argument) you get s_apache.tar.gz.aa s_apache.tar.gz.ab s_apache.tar.gz.ac and so on. The results are a little more self-evident as a result. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message