summaryrefslogtreecommitdiff
path: root/static/v10/man1/ascii.1
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man1/ascii.1
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man1/ascii.1')
-rw-r--r--static/v10/man1/ascii.182
1 files changed, 82 insertions, 0 deletions
diff --git a/static/v10/man1/ascii.1 b/static/v10/man1/ascii.1
new file mode 100644
index 00000000..3495a297
--- /dev/null
+++ b/static/v10/man1/ascii.1
@@ -0,0 +1,82 @@
+.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)