From owner-freebsd-questions@FreeBSD.ORG Thu Aug 9 22:06:27 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 53BA616A417 for ; Thu, 9 Aug 2007 22:06:27 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 1EE8713C4E3 for ; Thu, 9 Aug 2007 22:06:26 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l79M2smI081540; Thu, 9 Aug 2007 18:02:54 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l79M2sb1081539; Thu, 9 Aug 2007 18:02:54 -0400 (EDT) (envelope-from jerrymc) Date: Thu, 9 Aug 2007 18:02:54 -0400 From: Jerry McAllister To: "V.I.Victor" Message-ID: <20070809220254.GA81490@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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 22:06:27 -0000 On Thu, Aug 09, 2007 at 08:25:17PM +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. > > 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? You could try 'dd' and manipulate the skip/offset and size arguments. ////jerry > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"