I'm REALLY hoping someone can help me with this...

For some reason, mk decided it would be fun to run the following command
for me:

8l $LDFLAGS -o important.h important.h.8

Of course, this overwrote important.h, a file containing C macros I
spent all day writing.

I tried mounting dump, but get an error saying that archive/main doesn't
exist.

Fortunately, there's a magic string in important.h (that exists only in
important.h) that I could use to find the file on /dev/sdC0/fossil.  But
Plan 9's grep doesn't seem to support the context switches -A, -B, or
-C.  There also doesn't appear to be a hexdup, od, or a pager capable of
performing searches.

What would be the equivalent to a context grep on Plan 9?  Or else, how
might I recover the text surrounding my magic string?

Any help would be greatly appreciated!

(I'm also wondering why mk decided to try to update my header file with
the loader(??)... but that's a less important matter ATM.)

Reply via email to