Hello, On Sat, 11 Aug 2018, Karl Sinn wrote:
Am 11.08.2018 um 01:00 schrieb Greg Freemyer:
I don't know the origin of these files, but I have a 100GB of corrupted PST files.
From what I can tell some sort of a processing / extraction tool went haywire and prepended binary junk in the front of the real data. The actual start of the data is a header with !BDN as the first 4 chars.
sounds like the perfect occasion for using some scripting language like perl: - read the file - find the first occasion of "!BDN" - write all the rest in a new file
I'm not an expert with perl, but this should be an easy thing.
It's not that easy. First, I recommend reading $ perldoc -f binmode very carefully, and second: $ perldoc -f read $ perldoc -f write $ perldoc -f sysread $ perldoc -f syswrite Or call dd with the proper offset for the 'skip=' parameter. I'd recommend using a hex-editor suited to large files, such as vche. HTH, -dnh -- This is sick. Count me in. -- Arvid G. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org