From mboxrd@z Thu Jan 1 00:00:00 1970 From: smiley@zenzebra.mv.com To: 9fans@9fans.net Date: Sat, 29 Jan 2011 22:47:22 +0000 Message-ID: <864o8rz5s5.fsf@cmarib.ramside> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [9fans] HELP: recoving important header file rudely clobbered by mk Topicbox-Message-UUID: a3e0c428-ead6-11e9-9d60-3106f5b1d025 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.)