other sections
ASCII(1plan9) | ASCII(1plan9) |
NAME¶
ascii, unicode - interpret ASCII, Unicode charactersSYNOPSIS¶
ascii [ -8 ] [ -oxdbn ] [ -nct ] [ text ] unicode [ -nt ] hexmin-hexmax unicode [ -t ] hex [ ... ] unicode [ -n ] characters look hex /lib/unicodeDESCRIPTION¶
Ascii prints the ASCII values corresponding to characters and vice versa; under the -8 option, the ISO Latin-1 extensions (codes 0200-0377) are included. The values are interpreted in a settable numeric base; -o specifies octal, -d decimal, -x hexadecimal (the default), and -bn base n. With no arguments, ascii prints a table of the character set in the specified base. Characters of text are converted to their ASCII values, one per line. If, however, the first text argument is a valid number in the specified base, conversion goes the opposite way. Control characters are printed as two- or three-character mnemonics. Other options are:- -n
- Force numeric output.
- -c
- Force character output.
- -t
- Convert from numbers to running text; do not interpret control characters or insert newlines.
EXAMPLES¶
- ascii -d
- Print the ASCII table base 10.
- unicode p
- Print the hex value of `p'.
- unicode 2200-22f1
- Print a table of miscellaneous mathematical symbols.
- look 039 /lib/unicode
- See the start of the Greek alphabet's encoding in the Unicode Standard.
FILES¶
- /lib/unicode
- table of characters and descriptions.