This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: /usr/bin/od -z


I can't answer whether it's cygwin-related, but using "-t u2z" is a
workaround:

$ od --help
<snip>
Traditional format specifications may be intermixed; they accumulate:
  -a   same as -t a,  select named characters
  -b   same as -t oC, select octal bytes
  -c   same as -t c,  select ASCII characters or backslash escapes
  -d   same as -t u2, select unsigned decimal shorts
  -f   same as -t fF, select floats
  -h   same as -t x2, select hexadecimal shorts
  -i   same as -t d2, select decimal shorts
  -l   same as -t d4, select decimal longs
  -o   same as -t o2, select octal shorts
  -x   same as -t x2, select hexadecimal shorts
<snip>

$  od -d /cygwin.ico
0000000     0     1     1  8224    16     0     0   744
0000020     0    22     0    40     0    32     0    64
0000040     0     1     4     0     0   640     0     0
0000060     0     0     0     0     0     0     0     0
0000100     0     0   128 32768     0 32768   128   128
0000120     0   128   128 32896     0 49344   192 32896
0000140   128     0   255 65280     0 65280   255   255
0000160     0   255   255 65535     0 65535   255     0
0000200     0     0     0     0     0     0     0     0
<snip>

$  od -dz /cygwin.ico
od: invalid option -- z
Try `od --help' for more information.

$  od -t u2z /cygwin.ico
0000000     0     1     1  8224    16     0     0   744  >......  ........<
0000020     0    22     0    40     0    32     0    64  >......(...  dot  dot  dot  at  dot <
0000040     0     1     4     0     0   640     0     0  >................<
0000060     0     0     0     0     0     0     0     0  >................<
0000100     0     0   128 32768     0 32768   128   128  >................<
0000120     0   128   128 32896     0 49344   192 32896  >................<
0000140   128     0   255 65280     0 65280   255   255  >................<
0000160     0   255   255 65535     0 65535   255     0  >................<
0000200     0     0     0     0     0     0     0     0  >................<
<snip>

--Chris

-----Original Message-----
From: Hannu E K Nevalainen

Hmm...

 Is this cygwin related?


$ od --help
-- 8<--
							... Adding a z
suffix to
any type adds a display of printable characters to the end of each line
of output.
...

$ od -dz 'C:\autoexec.bat' | less
od: invalid option -- z
Try `od --help' for more information.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]