Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Feb 2009 18:19:10 -0500
From:      Eitan Adler <eitanadlerlist@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Tool to uncat file
Message-ID:  <49862DEE.4050000@gmail.com>
In-Reply-To: <20090201140102.e9a9a41a.freebsd@edvax.de>
References:  <20090201140102.e9a9a41a.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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.
> 

> Is there such a tool, or any other ideas?

If I understand correctly you are looking for split(1).
     -p pattern
             The file is split whenever an input line matches pattern, which
             is interpreted as an extended regular expression.  The matching
             line will be the first line of the next output file.  This
option
             is incompatible with the -b and -l options.


-- 
Eitan Adler
"Security is increased by designing for the way humans actually behave."
-Jakob Nielsen



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?49862DEE.4050000>