From owner-freebsd-questions@FreeBSD.ORG Thu Aug 9 20:46:54 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968B616A417 for ; Thu, 9 Aug 2007 20:46:54 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from smtpclu-3.eunet.yu (smtpclu-3.eunet.yu [194.247.192.228]) by mx1.freebsd.org (Postfix) with ESMTP id 0FE1E13C461 for ; Thu, 9 Aug 2007 20:46:53 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from nyx.localhost (adsl-211-191.eunet.yu [213.198.211.191]) by smtpclu-3.eunet.yu (8.13.6/8.13.6) with ESMTP id l79KkhaZ011059; Thu, 9 Aug 2007 22:46:44 +0200 Message-Id: <200708092046.l79KkhaZ011059@smtpclu-3.eunet.yu> Date: Thu, 9 Aug 2007 22:41:49 +0200 From: Nikola Lecic To: "V.I.Victor" In-Reply-To: References: X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD 6.2-RELEASE X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.0 Cc: freebsd-questions@freebsd.org Subject: Re: Utility to change a byte in a binary file? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2007 20:46:54 -0000 On Thu, 09 Aug 2007 20:25:17 +0000 "V.I.Victor" 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