File:  [Research Unix] / researchv10dc / man / adm / man1 / ascii.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH ASCII 1 
.CT 1 inst_info
.SH NAME
ascii \- interpret ASCII characters
.SH SYNOPSIS
.B ascii
[
.BI -oxdb n
]
[
.B -nct
]
[
.B -e
]
[
.I text
]
.SH DESCRIPTION
.I Ascii
prints the
.SM  ASCII 
values corresponding to characters and
.I vice
.IR versa .
The values are interpreted in a settable numeric base;
.B -o
specifies octal (the default),
.B -d
decimal,
.B -x
hexadecimal, and
.BI -b n
base
.I n.
.PP
With no arguments,
.I ascii
reproduces
.F /usr/pub/ascii
in the specified base.
Characters of
.I text
are converted to their
.SM  ASCII 
values, one per line.
If, however, the first
.I text
argument
is a valid number in the specified base, conversion
goes the opposite way.
Control characters are printed as they appear in
.FR /usr/pub/ascii .
Other options are:
.TP
.B -n
Force numeric output.
.TP
.B -c
Force character output.
.TP
.B -t
Convert from numbers to running text; do not interpret
control characters or insert newlines.
.TP
.B -e
Interpret remaining arguments as
.I text.
.SH EXAMPLES
.TP
.L "ascii -d"
Print the
.SM  ASCII 
table base 10.
.TP
.L "ascii p"
Print the octal value of `p'.
.TP
.L "ascii 160"
Show which character is octal 160.
.SH "SEE ALSO
.IR ascii (6)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.