Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2005 08:46:01 -0500
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: OT: usage of split
Message-ID:  <200506200846.05150.kirk@strauser.com>
In-Reply-To: <200506192231.18309.algould@datawok.com>
References:  <200506192231.18309.algould@datawok.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1880282.jvdtGiPlfR
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 19 June 2005 22:31, Andrew L. Gould wrote:

> 1.  Can the split utility be used on binary files?

Yes.

> 2.  How does one rejoin the resulting split files to recreate the
> original file?  I assume you can cat text files into a new file using
> redirection (>>); but can you do that with a binary file?

Yes.  From the first line of the cat(1) man page: "cat - concatenate files"=
=2E =20
There you have it - "cat" is short for "concatenate".  It's the opposite of=
=20
"split".

If you want to prove it to yourself, try using cmp or md5 to compare before=
=20
and after versions of split-and-rejoined files.
=2D-=20
Kirk Strauser

--nextPart1880282.jvdtGiPlfR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iD8DBQBCtsid5sRg+Y0CpvERApLHAKCKUG/OCcXw1EPRaioaBhzdOpF7sACfWL9D
ft8h9NaP6y46sIDfxHDHYQ0=
=LnpT
-----END PGP SIGNATURE-----

--nextPart1880282.jvdtGiPlfR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506200846.05150.kirk>