David Vergin wrote:
> sed 's/F:\\/C:\\/g' pugs.exe > pugsfixed.exe
That should work fine, except for the problems of line endings. The
cygwin build system itself uses something along the lines of the
following to modify a binary file.
perl -pe 'BEGIN{binmode(STDIN); binmode(STDOUT);}; s/F:
David Vergin wrote:
I want to write a script to do a minor edit of a binary file. I don't
use sed, but as best I can say, what I need would be the equivalent of:
sed 's/F:\\/C:\\/g' pugs.exe > pugsfixed.exe
But sed (in my unfamiliar hands) seems to mung the binary (beyond what I
have ask
I want to write a script to do a minor edit of a binary file. I don't
use sed, but as best I can say, what I need would be the equivalent of:
sed 's/F:\\/C:\\/g' pugs.exe > pugsfixed.exe
But sed (in my unfamiliar hands) seems to mung the binary (beyond what I
have asked for). I assume this
3 matches
Mail list logo