{"id":2269,"date":"2023-03-02T18:55:23","date_gmt":"2023-03-02T18:55:23","guid":{"rendered":"https:\/\/cdblog.cdstealer.com\/?p=2269"},"modified":"2023-03-06T12:39:37","modified_gmt":"2023-03-06T12:39:37","slug":"pesky-control-characters","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=2269","title":{"rendered":"Pesky Control Characters"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">For when plain text goes mad.  Handy for printf, sed, vim<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>Control Characters<\/a><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">CTRL   (^D means to hold the CTRL key and hit d)\n\nOct  Dec Char  Hex  Key    Comments\n\\000   0  NUL  \\x00  ^@ \\0 (Null byte)\n\\001   1  SOH  \\x01  ^A    (Start of heading)\n\\002   2  STX  \\x02  ^B    (Start of text)\n\\003   3  ETX  \\x03  ^C    (End of text)\n\\004   4  EOT  \\x04  ^D    (End of transmission)\n\\005   5  ENQ  \\x05  ^E    (Enquiry)\n\\006   6  ACK  \\x06  ^F    (Acknowledge)\n\\007   7  BEL  \\x07  ^G    (Ring terminal bell)\n\\010   8   BS  \\x08  ^H \\b (Backspace)  (\\b matches backspace inside [] only)\n\\011   9   HT  \\x09  ^I \\t (Horizontal tab)\n\\012  10   LF  \\x0A  ^J \\n (Line feed)\n\\013  11   VT  \\x0B  ^K    (Vertical tab)\n\\014  12   FF  \\x0C  ^L \\f (Form feed)\n\\015  13   CR  \\x0D  ^M \\r (Carriage return)\n\\016  14   SO  \\x0E  ^N    (Shift out)\n\\017  15   SI  \\x0F  ^O    (Shift in)\n\\020  16  DLE  \\x10  ^P    (Data link escape)\n\\021  17  DC1  \\x11  ^Q    (Device control 1) (XON) (Default UNIX START char.)\n\\022  18  DC2  \\x12  ^R    (Device control 2)\n\\023  19  DC3  \\x13  ^S    (Device control 3) (XOFF)  (Default UNIX STOP char.)\n\\024  20  DC4  \\x14  ^T    (Device control 4)\n\\025  21  NAK  \\x15  ^U    (Negative acknowledge)\n\\026  22  SYN  \\x16  ^V    (Synchronous idle)\n\\027  23  ETB  \\x17  ^W    (End of transmission block)\n\\030  24  CAN  \\x18  ^X    (Cancel)\n\\031  25  EM   \\x19  ^Y    (End of medium)\n\\032  26  SUB  \\x1A  ^Z    (Substitute character)\n\\033  27  ESC  \\x1B  ^[    (Escape)\n\\034  28  FS   \\x1C  ^\\    (File separator, Information separator four)\n\\035  29  GS   \\x1D  ^]    (Group separator, Information separator three)\n\\036  30  RS   \\x1E  ^^    (Record separator, Information separator two)\n\\037  31  US   \\x1F  ^_    (Unit separator, Information separator one)\n\\177 127  DEL  \\x7F  ^?    (Delete)<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a>Printable Characters<\/a><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Specials (32-47)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex    Comments\n\\040  32 \" \" \\x20    (space)\n\\041  33  !  \\x21    EXCLAMATION POINT(bang)\n\\042  34  \"  \\x22    QUOTATION MARK, DIAERESIS\n\\043  35  #  \\x23:   NUMBER SIGN (Pound sign)\n\\044  36  $  \\x24    DOLLAR SIGN\n\\045  37  %  \\x25    PERCENT SIGN\n\\046  38  &amp;  \\x26    AMPERSAND\n\\047  39  '  \\x27    APOSTROPHE, RIGHT SINGLE QUOTATION MARK, ACUTE ACCENT (single quote)\n\\050  40  (  \\x28    LEFT PARENTHESIS  (open parenthesis)\n\\051  41  )  \\x29    RIGHT PARENTHESIS (close parenthesis)\n\\052  42  *  \\x2A    ASTERISK\n\\053  43  +  \\x2B    PLUS SIGN\n\\054  44  ,  \\x2C    COMMA, CEDILLA\n\\055  45  -  \\x2D    HYPHEN, MINUS SIGN\n\\056  46  .  \\x2E    PERIOD, DECIMAL POINT, (Full Stop)\n\\057  47  \/  \\x2F    SLANT (SOLIDUS), slash<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Digits<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex\n\\060  48  0  \\x30\n\\061  49  1  \\x31\n\\062  50  2  \\x32\n\\063  51  3  \\x33\n\\064  52  4  \\x34\n\\065  53  5  \\x35\n\\066  54  6  \\x36\n\\067  55  7  \\x37\n\\070  56  8  \\x38\n\\071  57  9  \\x39<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Specials (58-64)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex    Comments\n\\072  58  :  \\x3A    COLON\n\\073  59  ;  \\x3B    SEMICOLON\n\\074  60  &lt;  \\x3C    LESS-THAN SIGN  (left angle bracket)\n\\075  61  =  \\x3D    EQUALS SIGN\n\\076  62  &gt;  \\x3E    GREATER-THAN SIGN  (right angle bracket)\n\\077  63  ?  \\x3F    QUESTION MARK\n\\100  64  @  \\x40    COMMERCIAL AT<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Latin Capital Letters<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex       Oct  Dec Char Hex       Oct  Dec Char Hex\n\\101  65  A  \\x41\t\\112  74  J  \\x4A\t\\123  83  S  \\x53\n\\102  66  B  \\x42\t\\113  75  K  \\x4B\t\\124  84  T  \\x54\n\\103  67  C  \\x43\t\\114  76  L  \\x4C\t\\125  85  U  \\x55\n\\104  68  D  \\x44\t\\115  77  M  \\x4D\t\\126  86  V  \\x56\n\\105  69  E  \\x45\t\\116  78  N  \\x4E\t\\127  87  W  \\x57\n\\106  70  F  \\x46\t\\117  79  O  \\x4F\t\\130  88  X  \\x58\n\\107  71  G  \\x47\t\\120  80  P  \\x50\t\\131  89  Y  \\x59\n\\110  72  H  \\x48\t\\121  81  Q  \\x51\t\\132  90  Z  \\x5A\n\\111  73  I  \\x49\t\\122  82  R  \\x52<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Specials (91-96)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex    Comments\n\\133  91  [  \\x5B    LEFT (SQUARE) BRACKET (open bracket) \n\\134  92  \\  \\x5C    REVERSE SLANT (REVERSE SOLIDUS) (backslash, backslant) \n\\135  93  ]  \\x5D    RIGHT (SQUARE) BRACKET (closing bracket) \n\\136  94  ^  \\x5E    CIRCUMFLEX ACCENT \n\\137  95  _  \\x5F    UNDERLINE (LOW LINE)\n\\140  96  `  \\x60    LEFT SINGLE QUOTATION MARK, GRAVE ACCENT <\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Latin Small Letters<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex       Oct  Dec Char Hex       Oct  Dec Char Hex\n\\141  97  a  \\x61\t\\152 106  j  \\x6A\t\\163 115  s  \\x73\n\\142  98  b  \\x62\t\\153 107  k  \\x6B\t\\164 116  t  \\x74\n\\143  99  c  \\x63\t\\154 108  l  \\x6C\t\\165 117  u  \\x75\n\\144 100  d  \\x64\t\\155 109  m  \\x6D\t\\166 118  v  \\x76\n\\145 101  e  \\x65\t\\156 110  n  \\x6E\t\\167 119  w  \\x77\n\\146 102  f  \\x66\t\\157 111  o  \\x6F\t\\170 120  x  \\x78\n\\147 103  g  \\x67\t\\160 112  p  \\x70\t\\171 121  y  \\x79\n\\150 104  h  \\x68\t\\161 113  q  \\x71\t\\172 122  z  \\x7A\n\\151 105  i  \\x69\t\\162 114  r  \\x72<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Specials (123-126)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex    Comments\n\\173 123  {  \\x7B    LEFT BRACE (LEFT CURLY BRACKET) (open brace)\n\\174 124  |  \\x7C    VERTICAL LINE (pipe)\n\\175 125  }  \\x7D    RIGHT BRACE (RIGHT CURLY BRACKET) (closing brace)\n\\176 126  ~  \\x7E    TILDE (OVERLINE) (squiggle)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Control (127)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Oct  Dec Char Hex Key   Comments\n\\177 127 DEL \\x7F ^?    (Delete)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>For when plain text goes mad. Handy for printf, sed, vim Control Characters CTRL (^D means to hold the CTRL key and hit d) Oct Dec Char Hex Key Comments \\000 0 NUL \\x00 ^@ \\0 (Null byte) \\001 1 SOH \\x01 ^A (Start of heading) \\002 2 STX \\x02 ^B (Start of text) \\003 &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=2269\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Pesky Control Characters<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,305],"tags":[325,18,215],"class_list":["post-2269","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-splunk","tag-ctrl","tag-linux","tag-splunk"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2269"}],"version-history":[{"count":5,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2269\/revisions"}],"predecessor-version":[{"id":2276,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2269\/revisions\/2276"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}