Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2007 22:41:49 +0200
From:      Nikola Lecic <nlecic@EUnet.yu>
To:        "V.I.Victor" <idmc_vivr@intgdev.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Utility to change a byte in a binary file?
Message-ID:  <200708092046.l79KkhaZ011059@smtpclu-3.eunet.yu>
In-Reply-To: <W896404648215141186691117@webmail30>
References:  <W896404648215141186691117@webmail30>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 09 Aug 2007 20:25:17 +0000
"V.I.Victor" <idmc_vivr@intgdev.com> wrote:

> It sure seems that this should be simple, but my searches have only
> turned up inter-active hex/disk editors.  I'm probably "asking" wrong.
>=20
> I have a large binary file (>700 meg) and I know that there is a
> single wrong byte.  I also know it's exact location in the file.
>=20
> Is there a command-line utility to write a byte at a specified offset
> into a file?=20

Hello Victor,

editors/bpatch and editors/hexcurse are what you want. Both work great
with large files.

Nikola Le=C4=8Di=C4=87



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200708092046.l79KkhaZ011059>