Utility to change a byte in a binary file?

Nikola Lecic nlecic at EUnet.yu
Thu Aug 9 13:46:54 PDT 2007


On Thu, 09 Aug 2007 20:25:17 +0000
"V.I.Victor" <idmc_vivr at 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.
> 
> 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.
> 
> Is there a command-line utility to write a byte at a specified offset
> into a file? 

Hello Victor,

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

Nikola Lečić


More information about the freebsd-questions mailing list