From owner-freebsd-questions Wed Apr 24 15:43:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA06085 for questions-outgoing; Wed, 24 Apr 1996 15:43:30 -0700 (PDT) Received: from freenet.hamilton.on.ca (main.freenet.hamilton.on.ca [199.212.94.65]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA06055 for ; Wed, 24 Apr 1996 15:43:17 -0700 (PDT) From: hoek@freenet.hamilton.on.ca Received: from james.freenet.hamilton.on.ca (james.freenet.hamilton.on.ca [199.212.94.66]) by freenet.hamilton.on.ca (8.6.12/8.6.12) with ESMTP id SAA07428; Wed, 24 Apr 1996 18:43:02 -0400 Received: (ac199@localhost) by james.freenet.hamilton.on.ca (8.6.12/8.6.12) id SAA06432; Wed, 24 Apr 1996 18:44:25 -0400 Date: Wed, 24 Apr 1996 18:44:18 -0400 (EDT) To: "Jeffrey M. Metcalf" cc: questions@FreeBSD.ORG Subject: Re: Archiving In-Reply-To: <9604242020.AA20068@ruddles.stat.uconn.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 24 Apr 1996, Jeffrey M. Metcalf wrote: > I was wondering if there is a program available on FreeBSD that can > split a large binary file into smaller pieces which can be reassembled > at a later date. My only backup storage media right now are 1.44MB > floppies and I have a tar-gzipped file that cannot be repacked into > smaller pieces to fit on a floppy. >From the FAQ at www.freebsd.org _________________________________________________________________ 7.26. How do I split up large binary files into smaller 240k files like the distribution does? Newer BSD based systems have a ``-b'' option to split that allows them to split files on arbitrary byte boundaries. Here is an example from /usr/src/Makefile. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) Primarily, have a look at `man split'. To reassamble the files into one piece, you can simply cat splitfiles* >> togetherfile I think gzip might even accept splitfiles*. -- Outnumbered? Maybe. Outspoken? Never! tIM...HOEk