Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Feb 2009 18:46:26 +0000
From:      Matthew Seaman <>
To:        Polytropon <>
Cc:        FreeBSD Questions <>
Subject:   Re: Tool to uncat file
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Polytropon wrote:
> Dear list,
> before starting to code on my own, I'd like to ask if there's already a=

> tool to uncat files, defining the file separation position as a string
> of bytes, usually given in hexadecimal form.
> An example could be this:
> 	% uncat -p 0x12,0x52,0xf1,0x09 file_orig
> It creates file_1 file_2 file_3. And, of course,
> 	% cat file_1 file_2 file_3 > file_orig
> would re-create the original file. The bytes 0x12,0x52,0xf1,0x09 tell t=
> file starting pattern (-p), where a new file begins.
> I cannot use dd due to the fact that the files concatenated are of a
> different size. So the idea would be to look for specific byte pattern
> and then start a new file each time it occurs on input.
> Is there such a tool, or any other ideas?




Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
                                                  Kent, CT11 9PW

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG v2.0.10 (FreeBSD)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>