| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <42EFD865.B9FDFB4@dessent.net> |
| Date: | Tue, 02 Aug 2005 13:32:37 -0700 |
| From: | Brian Dessent <brian AT dessent DOT net> |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Command line edit of binary file |
| References: | <42EFBC32 DOT 2070007 AT igc DOT org> |
| X-Spam-Report: | -4.3/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 1.6 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results |
| X-IsSubscribed: | yes |
| Reply-To: | cygwin AT cygwin DOT com |
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:\\/C:\\/g' \
< input > output
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |