I am solving the challenge about splitting with simultaneous progress monitoring here.
Assume the detectable field of the header is FA FA FA FA
in Hex.
Steps in splitting by the field
- binary to binary ascii of the data as described here
- bin2hex
- mark split points by
gsed 's/FA FA FA FA/\0/100g'
- split where marks
\0
by pseudocodesplit -p'\0' input.txt
which is discussed here
How can you do the conversion bin2hex?