start page | rating of books | rating of authors | reviews | copyrights

Book HomeBook TitleSearch this book

Appendix A. ASCII Character Set

This appendix presents the set of ASCII characters, along with their equivalent values in decimal, octal, and hexadecimal. The first table shows nonprinting characters; it's useful when you need to represent nonprinting characters in some printed form, such as octal. For example, the echo and tr commands let you specify characters using octal values of the form \nnn. Also, the od command can display nonprinting characters in a variety of forms.

The second table shows printing characters. This table is useful when using the previous commands, but also when specifying a range of characters in a pattern-matching construct.

Table A-1. Nonprinting Characters

DecimalOctalHexCharacterRemark
000000CTRL-@NUL (Null prompt)
100101CTRL-ASOH (Start of heading)
200202CTRL-BSTX (Start of text)
300303CTRL-CETX (End of text)
400404CTRL-DEOT (End of transmission)
500505CTRL-EENQ (Enquiry)
600606CTRL-FACK (Acknowledge)
700707CTRL-GBEL (Bell)
801008CTRL-HBS (Backspace)
901109CTRL-IHT (Horizontal tab)
100120ACTRL-JLF (Linefeed)
110130BCTRL-KVT (Vertical tab)
120140CCTRL-LFF (Formfeed)
130150DCTRL-MCR (Carriage return)
140160ECTRL-NSO (Shift out)
150170FCTRL-OSI (Shift in)
1602010CTRL-PDLE (Data link escape)
1702111CTRL-QDC1 (XON)
1802212CTRL-RDC2
1902313CTRL-SDC3 (XOFF)
2002414CTRL-TDC4
2102515CTRL-UNAK (Negative acknowledge)
2202616CTRL-VSYN (Synchronous idle)
2302717CTRL-WETB (End transmission blocks)
2403018CTRL-XCAN (Cancel)
2503119CTRL-YEM (End of medium)
260321ACTRL-ZSUB (Substitute)
270331BCTRL-[ESC (Escape)
280341CCTRL-\FS (File separator)
290351DCTRL-]GS (Group separator)
300361ECTRL-^RS (Record separator)
310371FCTRL-_US (Unit separator)
1271777F DEL (Delete or rubout)

Table A-2. Printing Characters

DecimalOctalHexCharacterRemark
3204020 Space
3304121!Exclamation point
3404222"Double quote
3504323#Pound sign
3604424$Dollar sign
3704525%Percent sign
3804626&Ampersand
3904727'Apostrophe
4005028(Left parenthesis
4105129)Right parenthesis
420522A*Asterisk
430532B+Plus sign
440542C,Comma
450552DHyphen
460562E.Period
470572F/Slash
48060300  
49061311  
50062322 
51063333 
52064344 
53065355 
54066366 
55067377 
56070388 
57071399 
580723A:Colon
590733B;Semicolon
600743C<Left angle bracket
610753D=Equal sign
620763E>Right angle bracket
630773F?Question mark
6410040@At sign
6510141A  
6610242B  
6710343C  
6810444D  
6910545E  
7010646F  
7110747G  
7211048H  
7311149I  
741124AJ  
751134BK  
761144CL  
771154DM  
781164EN  
791174FO  
8012050P  
8112151Q  
8212252R  
8312353S  
8412454T  
8512555U 
8612656V 
8712757W 
8813058X 
8913159Y 
901325AZ 
911335B[Left square bracket
921345C\Backslash
931355D]Right square bracket
941365E^Caret
951375F_Underscore
9614060Back quote
9714161a 
9814262b 
9914363c 
10014464d 
10114565e 
10214666f 
10314767g 
10415068h 
10515169i  
1061526Aj  
1071536Bk  
1081546Cl  
1091556Dm  
1101566En  
1111576Fo  
11216070p  
11316171q  
11416272r  
11516373s  
11616474t 
11716575u  
11816676v  
11916777w  
12017078x  
12117179y  
1221727Az  
1231737B{Left curly brace
1241747C|Vertical bar
1251757D}Right curly brace
1261767E~ Tilde



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.