man(1) Manual page archive


     ASCII(1)                                                 ASCII(1)

     NAME
          ascii - interpret ASCII characters

     SYNOPSIS
          ascii [ -oxd | -bn ] [ -nct ] [ -e ] [ text ]

     DESCRIPTION
          Ascii prints the ASCII values corresponding to characters
          and vice versa. The values are interpreted in a settable
          numeric base; -o specifies octal (the default), -d decimal,
          -x hexadecimal, and -bn base n .

          With no arguments, ascii reproduces /usr/pub/ascii in the
          specified base.  Any given characters of text are converted
          to their ASCII values, one per line.  If, however, the first
          argument of text is a valid number in the specified base, it
          is printed as plain text (control characters are printed as
          they appear in /usr/pub/ascii).  The option -n forces the
          output to numeric form and -c forces the output to printable
          characters.  The option -t converts, without interpretation,
          from numbers to text.  Finally, -e forces the following
          arguments to be interpreted as text .

     EXAMPLES
          ascii -d
               Print the ASCII table base 10.

          ascii p
               Print the octal value of `p'.

          ascii 160
               Show which character is octal 160.

     SEE ALSO
          ascii(7)