On Mon, Jun 11, 2001 at 10:25:32AM +0100, Dominic Mitchell wrote:
> You're very probably stuck.  Whilst you can use a hex editor to change
> strings in the binary, you can't expand the length of those strings,
> only contract them or retain the same length.
> 
> However, a solution would be to change the perl binary to use /opt/lib
> instead of /usr/lib and make /opt a symlink to /usr/local.
> 
> There's a couple of reasonable hex editors out there, but I usually just
> tend to use M-x hexl-find-file in emacs.  If you're a vim user, see
> xxd(1).

Presumably if you know the string, and they're all going to be replaced
(as sounds like the case) you could use perl -pi -0e
's~/usr/lib/~/opt/lib~g' in whole-file-slurp mode (is that the right
switch, -0?).

Paul

-- 
Intentions 
-credibility of
-nobility of
-humility of

Reply via email to