Targeted extraction, does such a think exist

Status
Not open for further replies.

wtr

Full Member level 5
Joined
May 1, 2014
Messages
299
Helped
29
Reputation
58
Reaction score
25
Trophy points
1,308
Activity points
4,108
Hello all,

I have a FPGA project which writes data to a compact flash.
The FPGA separates the into two types.

Identified by a hex chain
Datatype 1 = AAAA AAAA 4321 {timestamp} [data follows]
Datatype 1 = AAAA AAAA 1234 {timestamp} [data follows]

I recorded about 5 GB of data onto the Compact Flash. Then i extracted the data to a pc using dd and gzip command.

When i take this .gz file to a machine and decompress, it's about 32GB's (CF size)...where only the first chunk is relevant data.

Does anyone know how I can decompress & delete the later half of the file automatically?
I guess my other option is limiting the dd extract to only take the first chunk..however I don't know it's length until extracted?

Thanks,
Wes
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…