Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 1996 18:54:34 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        msmith@atrad.adelaide.edu.au (Michael Smith)
Cc:        zgabor@CoDe.hu, freebsd-questions@freebsd.org
Subject:   Re: hexdump
Message-ID:  <199604250924.SAA24865@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199604250828.RAA24392@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Apr 25, 96 05:58:57 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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"' <filename>

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  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604250924.SAA24865>