From owner-freebsd-hackers Sat Jul 13 13:16:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EE6137B400 for ; Sat, 13 Jul 2002 13:16:30 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id D055443E81 for ; Sat, 13 Jul 2002 13:16:29 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 13 Jul 2002 21:16:29 +0100 (BST) Date: Sat, 13 Jul 2002 21:16:28 +0100 From: David Malone To: Luigi Rizzo Cc: hackers@freebsd.org Subject: Re: how to find offset of a string in a binary file ? Message-ID: <20020713201628.GA88506@walton.maths.tcd.ie> References: <20020713125320.A67829@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020713125320.A67829@iguana.icir.org> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jul 13, 2002 at 12:53:21PM -0700, Luigi Rizzo wrote: > So, does anyone know how to use the basic unix tools to find > the offset of a string in a binary file ? > Specifically, I would like to locate the offset of the string > > "MFS Filesystem goes here" Would grep -b do what you want? David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message