delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/02/15:32:14

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: <42EFCA2B.1020708@familiehaase.de>
Date: Tue, 02 Aug 2005 21:31:55 +0200
From: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728
MIME-Version: 1.0
To: David Vergin <dvergin AT igc DOT org>
CC: cygwin AT cygwin DOT com
Subject: Re: Command line edit of binary file
References: <42EFBC32 DOT 2070007 AT igc DOT org>
In-Reply-To: <42EFBC32.2070007@igc.org>
X-IsSubscribed: yes

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 asked for). I assume this is because it is expecting a text file.
> 
> I could write a Perl script to do this. But this task screams "Prior 
> Art!" so this seems like a good opportunity to add another unixy tool to 
> my personal toolkit.
> 
> Is there a tool available under cygwin to do a command line edit of a 
> binary file? (hexedit works fine for an interactive solution but I want 
> to automate this.)

bsdiff / bspatch?

Original source:
http://www.daemonology.net/bsdiff/

Cygwin versions still online:
$ cat get.sh
#!/bin/sh

wget http://www.lapo.it/cygwin/bsdiff-4.2-1-src.tar.bz2
wget http://www.lapo.it/cygwin/bsdiff-4.2-1.tar.bz2

MinGW version:
http://www.pokorra.de/coding/bsdiff.html

VC++ Version:
http://sites.inka.de/tesla/f_others.html#bsdiff


Gerrit
-- 
=^..^=

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019