gpg: failed to create temporary file '/var/lib/lurker/.#lk0x571de100.hantslug.org.uk.624': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Sun Nov 23 21:48:33 2008 GMT
gpg:                using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Sun, Nov 23, 2008 at 09:34:48PM -0000, Rob Malpass wrote:
> I need to find a litttle utility to display the contents of a binary
> file in some meaningful manner.  I've tried od and hexdump and (it
> maybe me and syntax) but I can't get it quite right.  I realise I
> could just do cat fred where fred is the file but that will throw
> out lots of non-printable stuff that'll just crash the terminal or
> send garbage to my printer (well perhaps not nowadays but older
> users will know what I mean here!).
> 
> Say if I have a file which says "foo bar" then what I want is
> 
> 0000    b1 b2 b3 b4 b5 b6 b7 foo bar.
> 
> i.e. displaying a . for every non-printable character.  I can make
> hexdump and od do the byte listings but I can't see how to get them
> to output the ASCII itself - they'll output the hex or octal no
> problem.  Can someone either correct my syntax or show me a decent
> little utility to do the same job?
   $ hd foo.img
   Seems to work for me:
00000000  4f 67 67 53 00 02 00 00  00 00 00 00 00 00 95 1c  |OggS............|
00000010  00 00 00 00 00 00 4b c8  98 50 01 1e 01 76 6f 72  |......K..P...vor|
00000020  62 69 73 00 00 00 00 02  44 ac 00 00 ff ff ff ff  |bis.....D.......|
   Hugo.
-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or 
http://www.carfax.org.uk
  --- Startle, startle, little twink.  How I wonder what you think. ---