bubulescu
Member level 3
- Joined
- Sep 10, 2009
- Messages
- 65
- Helped
- 12
- Reputation
- 24
- Reaction score
- 12
- Trophy points
- 1,288
- 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
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