Unix and Linux Discussions Tagged with ascii |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
72,511 |
Shell Programming and Scripting |
|
|
|
11 |
27,791 |
Shell Programming and Scripting |
|
|
|
8 |
21,884 |
Windows & DOS: Issues & Discussions |
|
|
|
3 |
3,167 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
4,847 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
8,188 |
UNIX for Advanced & Expert Users |
|
|
|
12 |
8,609 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
2,220 |
Shell Programming and Scripting |
|
|
|
6 |
6,220 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
5,990 |
Shell Programming and Scripting |
|
|
|
3 |
4,106 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,976 |
Programming |
|
|
|
2 |
5,188 |
Shell Programming and Scripting |
|
|
|
7 |
11,759 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
10,603 |
Shell Programming and Scripting |
|
|
|
1 |
12,036 |
Shell Programming and Scripting |
|
|
|
1 |
16,824 |
Programming |
|
|
|
4 |
12,967 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,413 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
10,032 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
64,256 |
Shell Programming and Scripting |
|
|
|
4 |
29,124 |
Shell Programming and Scripting |
|
|
|
3 |
9,510 |
Shell Programming and Scripting |
|
|
|
0 |
1,105 |
Software Releases - RSS News |
|
|
|
12 |
21,482 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,182 |
Software Releases - RSS News |
|
|
|
5 |
6,385 |
Shell Programming and Scripting |
|
|
|
0 |
1,185 |
Software Releases - RSS News |
|
|
|
0 |
1,200 |
Software Releases - RSS News |
|
|
|
0 |
1,148 |
Software Releases - RSS News |
|
|
|
0 |
1,497 |
Software Releases - RSS News |
|
|
|
3 |
14,763 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,428 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
6,372 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,127 |
Software Releases - RSS News |
|
|
|
0 |
1,622 |
Software Releases - RSS News |
|
|
|
0 |
1,197 |
Software Releases - RSS News |
|
|
|
0 |
1,253 |
Software Releases - RSS News |
|
|
|
4 |
13,570 |
Shell Programming and Scripting |
|
|
|
1 |
23,403 |
Shell Programming and Scripting |
ASCII(1) General Commands Manual ASCII(1)
NAME
ascii, unicode - interpret ASCII, Unicode characters
SYNOPSIS
ascii [ -8 ] [ -oxdbn ] [ -nct ] [ text ]
unicode [ -nt ] hexmin-hexmax
unicode [ -t ] hex [ ... ]
unicode [ -n ] characters
look hex /lib/unicode
DESCRIPTION
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 val-
ues, 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.
Unicode is similar; it converts between UTF and character values from the Unicode Standard (see utf(7)). If given a range of hexadecimal
numbers, unicode prints a table of the specified Unicode characters -- their values and UTF representations. Otherwise it translates from
UTF to numeric value or vice versa, depending on the appearance of the supplied text; the -n option forces numeric output to avoid ambigu-
ity with numeric characters. If converting to UTF , the characters are printed one per line unless the -t flag is set, in which case the
output is a single string containing only the specified characters. Unlike ascii, unicode treats no characters specially.
The output of ascii and unicode may be unhelpful if the characters printed are not available in the current font.
The file /lib/unicode contains a table of characters and descriptions, sorted in hexadecimal order, suitable for look(1) on the lower case
hex values of characters.
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.
SOURCE
/src/cmd/ascii.c
/src/cmd/unicode.c
SEE ALSO
look(1), tcs(1), utf(7), font(7)
ASCII(1)