Output from 'xxd' -- what mime.types?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Thu Dec 8 04:03:35 UTC 2011


Hi All,

I like "xxd" way more than "uuencode" or "mimencode".  It may double the
size, but is much easier to deal with, particularly with "xxd -r".

Output from "xxd" looks something like

    0000000: 4241 5348 3d2f 6269 6e2f 6261 7368 0a42  BASH=/bin/bash.B
    0000010: 4153 484f 5054 533d 636d 6468 6973 743a  ASHOPTS=cmdhist:
    0000020: 6578 7471 756f 7465 3a66 6f72 6365 5f66  extquote:force_f
    ...

Output from "xxd -p" looks like

    424153483d2f62696e2f626173680a424153484f5054533d636d64686973
    743a65787471756f74653a666f7263655f6669676e6f72653a686f737463
    6f6d706c6574653a696e7465726163746976655f636f6d6d656e74733a70
    ...

Do you know what mime.types it should be?  I would to use something more
descriptive than "plain/text"... may be "plain/xxd"?
-- 
William
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list