Re: [SAGE] Perl Question

2002-05-22 Thread Ed Lyon
It seems you've made two mistakes: o strings only returns printable strings from the file. It does not return the contents of the file made printable. So, any offset in the output will not be the offset in the file. You might want to investigate the -t option to strings. o The -b

Re: [SAGE] Perl Question

2002-05-22 Thread Trey Harris
In a message dated Wed, 22 May 2002, Paul Company writes: > > I want to replace a string "/usr/local" with another > string "/tmp/local" in a binary file. > > This is what I wrote: > [...] This seems like overkill to me. If you're only doing this as a one-off, then memory shouldn't be a problem