wtr
Full Member level 5

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
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