Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Extract images from large file

Status
Not open for further replies.

bubulescu

Member level 3
Member level 3
Joined
Sep 10, 2009
Messages
65
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,288
Visit site
Activity points
1,897
Hello

I have a large file of several hundreds of MB which contains multiple blocks of data with known headers (PNG, MP3), but sizes differ and there is other non-important data. What I'd like to do is extract the chunks with the help from sed, grep and the likes, searching within the file for occurences of the header(s) and save the data inbetween, then add the header, since they seem to have no "spaces" between them -- the last file would be manually edited with a hex editor -- but my knowledge in using them is fairly limited. Of course, the motto is "whatever works".
Does anyone know how to?

Vlad
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top