FG
💻 Software

How to split binary file based on pattern?

Fresh7 days ago
Mar 15, 20264092 views
Confidence Score0%
0%

Problem

I would like to split a binary file into smaller files based on pattern 'xÚ' (it's 78 DA in hexadecimal), so when there's an 'xÚ' in the file the splitter script splits and pastes the content into a new file until another 'xÚ' can be found. The newly created files should start as 'xÚ'. FreeBSD , , …

Error Output

awk

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to split binary file based on pattern?

Low Risk

EDIT: Ok here is the cleanup of that mess: Empty RS could still be causing unexpected results as it makes awk seperate records at blank lines. In fact it is difficult to circumvent a splitup of a file into records. One way to solve this is to set th…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment