sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

od.1 (1588B)


      1 .Dd 2015-10-25
      2 .Dt OD 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm od
      6 .Nd octal dump
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl bdosvx
     10 .Op Fl A Ar addrformat
     11 .Op Fl E | e
     12 .Op Fl j Ar skip
     13 .Op Fl t Ar outputformat...
     14 .Op Ar file ...
     15 .Sh DESCRIPTION
     16 .Nm
     17 writes an octal dump of each
     18 .Ar file
     19 to stdout.  If no
     20 .Ar file
     21 is given
     22 .Nm
     23 reads from stdin.
     24 .Sh OPTIONS
     25 .Bl -tag -width Ds
     26 .It Fl A Ar addressformat
     27 .Ar addressformat
     28 is one of d|o|x|n and sets the address to be
     29 either in \fId\fRecimal, \fIo\fRctal, he\fIx\fRadecimal or \fIn\fRot
     30 printed at all.  The default is octal.
     31 .It Fl E | e
     32 Force Little Endian
     33 .Fl ( e )
     34 or Big Endian
     35 .Fl ( E )
     36 system-independently.
     37 .It Fl b
     38 Equivalent to
     39 .Fl t o1 .
     40 .It Fl d
     41 Equivalent to
     42 .Fl t u2 .
     43 .It Fl j Ar skip
     44 Ignore the first
     45 .Ar skip
     46 bytes of input.
     47 .It Fl o
     48 Equivalent to
     49 .Fl t o2 .
     50 .It Fl s
     51 Equivalent to
     52 .Fl t d2 .
     53 .It Fl t Ar outputformat
     54 .Ar outputformat
     55 is a list of a|c|d|o|u|x followed by a digit or C|S|I|L and sets
     56 the content to be in n\fIa\fRmed character, \fIc\fRharacter, signed
     57 \fId\fRecimal, \fIo\fRctal, \fIu\fRnsigned decimal, or
     58 he\fIx\fRadecimal format, processing the given amount of bytes or the length
     59 of \fIC\fRhar, \fIS\fRhort, \fII\fRnteger or \fIL\fRong.
     60 The default is octal with 4 bytes.
     61 .It Fl v
     62 Always set. Write all input data, including duplicate lines.
     63 .It Fl x
     64 Equivalent to
     65 .Fl t x2 .
     66 .El
     67 .Sh STANDARDS
     68 The
     69 .Nm
     70 utility is compliant with the
     71 .St -p1003.1-2013
     72 specification except that the
     73 .Op Fl v
     74 flag is always enabled and the 'd' parameter for the
     75 .Op Fl t
     76 flag is interpreted as 'u'.
     77 .Pp
     78 The
     79 .Op Ee
     80 flags are an extension to that specification.