How about converting entire file to a string of bits?...
"0110110110000110011000011...." Then you can easily do any processing on it you want. chris On Mon, 2005-09-12 at 04:50, m ike wrote: > 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
signature.asc
Description: This is a digitally signed message part
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
