From owner-freebsd-hackers Sun Jul 14 1: 3:13 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 55CBE37B400 for ; Sun, 14 Jul 2002 01:03:11 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFD6943E31 for ; Sun, 14 Jul 2002 01:03:10 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g6E836f72201; Sun, 14 Jul 2002 01:03:06 -0700 (PDT) (envelope-from rizzo) Date: Sun, 14 Jul 2002 01:03:06 -0700 From: Luigi Rizzo To: "Duane H. Hesser" Cc: hackers@FreeBSD.ORG Subject: Re: how to find offset of a string in a binary file ? Message-ID: <20020714010305.A71964@iguana.icir.org> References: <20020713132144.A68304@iguana.icir.org> <200207132223.g6DMNe892090@androcles.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200207132223.g6DMNe892090@androcles.com>; from dhh@androcles.com on Sat, Jul 13, 2002 at 03:23:40PM -0700 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 03:23:40PM -0700, Duane H. Hesser wrote: ... > >> > So, does anyone know how to use the basic unix tools to find > >> > the offset of a string in a binary file ? ... > strings -at [odx] 'file' | grep whatever thanks a lot, that did the job cheers luigi > Duane H. Hesser > dhh@androcles.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message