So, does anyone know how to use the basic unix tools to find
the offset of a string in a binary file ?
Specifically, I would like to locate the offset of the string
"MFS Filesystem goes here"
into a kernel compiled with with MD_ROOT option.
grep does not help because it gives the offset of the "line"
which contains the string (where a "line" begins righr after
a newline).
Any ideas ?
thanks
luigi
-----------------------------------+-------------------------------------
Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione
http://www.iet.unipi.it/~luigi/ . Universita` di Pisa
TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy)
Mobile +39-347-0373137
-----------------------------------+-------------------------------------
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message