From owner-freebsd-questions Thu Apr 25 02:28:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA27652 for questions-outgoing; Thu, 25 Apr 1996 02:28:00 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA27647 for ; Thu, 25 Apr 1996 02:27:53 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id SAA24865; Thu, 25 Apr 1996 18:54:35 +0930 From: Michael Smith Message-Id: <199604250924.SAA24865@genesis.atrad.adelaide.edu.au> Subject: Re: hexdump To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Thu, 25 Apr 1996 18:54:34 +0930 (CST) Cc: zgabor@CoDe.hu, freebsd-questions@freebsd.org In-Reply-To: <199604250828.RAA24392@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Apr 25, 96 05:58:57 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Michael Smith stands accused of saying: > > Gabor Zahemszky stands accused of saying: > > > > How can I generate the next otput with hexdump: > > > > addr: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx cccccccccccccccc > > (of course addr is the adrress, xx is the byte in hex, c is the byte in char) > > hexdump -e '"%07.7_ax:" 16/1 " %02.2x" " " 16/1 "%_p" "\n"' Doh! Let's try that again. Put the following in a file : "%07.7_ax: " 16/1 "%02.2x " 16/1 "%_p" "\n" and specify it on the commandline to hexdump with -f. -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[