Thursday, October 11, 2012

How to write Control Character in Unix File

Open File in vi editor
Come in Insert mode by pressing Esc i
Press Control V
Then Press Control M
Then Esc


List of Ctrl Chars
 
Numeric Values Decimal Hex ASCII Character
Meaning Keyboard Entry
0
00
NUL Null Ctrl-@
1
01
SOH Start of heading
Ctrl-A
2
02
STX Start of text Ctrl-B
3
03
ETX Break/end of text Ctrl-C
4
04
EOT End of transmission Ctrl-D
5
05
ENQ Enquiry Ctrl-E
6
06
ACK Positive acknowledgment Ctrl-F
7
07
BEL Bell Ctrl-G
8
08
BS Backspace Ctrl-H
9
09
HT Horizontal tab Ctrl-I
10
0A
LF Line feed Ctrl-J
11
0B
VT Vertical tab Ctrl-K
12
0C
FF Form feed Ctrl-L
13
0D
CR Carriage return
(Equivilant to the Enter or
Return key)
Ctrl-M
14
0E
SO Shift out Ctrl-N
15
0F
SI Shift in/XON (resume
output)
Ctrl-O
16
10
DLE Data link escape Ctrl-P
17
11
DC1 Device control character 1 Ctrl-Q
18
12
DC2 Device control character 2
Ctrl-R
19
13
DC3 Device control character 3
Ctrl-S
20
14
DC4 Device control character 4
Ctrl-T
21
15
NAK Negative acknowledgment Ctrl-U
22
16
SYN Synchronous idle Ctrl-V
23
17
ETB End of transmission block Ctrl-W
24
18
CAN Cancel Ctrl-X
25
19
EM End of medium Ctrl-Y
26
1A
SUB Substitute/end of file Ctrl-Z
27
1B
ESC
Escape Ctrl-[
28
1C
FS File separator Ctrl-\
29
1D GS Group separator Ctrl-]
30
1E
RS
Record separator Ctrl-^
31
1F
US
Unit separator Ctrl-_