Re: Command line edit of binary file

2005-08-02 Thread Brian Dessent
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:

Re: Command line edit of binary file

2005-08-02 Thread Gerrit P. Haase
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

Command line edit of binary file

2005-08-02 Thread David Vergin
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