using the binary editor called bed, i can laboriously recover vacation jpgs 
from FAT16 CF card that I had mistakenly reformatted.

the best that I can come up with, however, is to use bed to find the byte 
offset of the beginning and end of each jpg. save all the offsets
in a file. then use tail and head with -c to dissect each jpg.

but since I know the beginning and ending hexadecimal markers for exif files 
(FF D8 and FF D9), it seems that there should be a way to script this task. 
it would be extremely helpful to be able to use grep to find the offsets, 
but I cannot figure out how to use grep in this manner, and have not been 
able to find an alternative to grep that will do this.

(and grep returns the byte offset of the line, not the match)

any pointers would be appreciated.

Mike

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to