On Sep 12, 2005, at 4:50 AM, m ike wrote:

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.


You might be better served by dd, which happily works on binary files with bytewise precision (see the seek=, bs= and count= options).


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.


Hopefully someone else will have some sage advice on this part...

Gregory

--
Gregory K. Ruiz-Ade <[EMAIL PROTECTED]>
OpenPGP Key ID: EAF4844B  keyserver: pgpkeys.mit.edu









Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to