> For some reason, mk decided it would be fun to run the following command
> for me:
>
> 8l $LDFLAGS -o important.h important.h.8
sounds like important.h was the target and a rule like
this was chosen:
%: %.$O
$CC $CFLAGS $stem $stem.$O
> 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?
strings will give you byte addresses, grep will zero in on your
magic string. dd can give you a big block surrounding your
magic string.
- erik