Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the default delimiter of HIVE and how special characters are entered and viewed in the linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about the HIVE default delimiter and how to input and view special characters in the linux system. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

First, view special characters

The visible special character in Vim is displayed directly, and the invisible special character is displayed as the way the character is entered on the command line, such as\ r as ^ M. Through: help digraph-table, you can see all the special characters that can be entered in Vim. The first page of the document is as follows:

Char digraph hex dec official name ^ @ NU 0x00 0 NULL (NUL) ^ A SH 0x01 1 START OF HEADING (SOH) ^ B SX 0x02 2 START OF TEXT (STX) ^ C EX 0x03 3 END OF TEXT (ETX) ^ D ET 0x04 4 END OF TRANSMISSION (EOT) ^ E EQ 0x05 5 ENQUIRY (ENQ) ^ F AK 0x06 6 ACKNOWLEDGE (ACK) ^ G BL 0x07 7 BELL (BEL) ^ H BS 0x08 8 BACKSPACE (BS) ^ I HT 0x09 9 CHARACTER TABULATION (HT) ^ @ LF 0x0a 10 LINE FEED (LF) ^ K VT 0x0b 11 LINE TABULATION (VT) ^ L FF 0x0c 12 FORM FEED (FF) ^ M CR 0x0d 13 CARRIAGE RETURN (CR)

The first is a special character, the second is digraph (see below), the third is hexadecimal representation, the fourth is decimal representation, and the fifth is the official name of the character.

Display the binary encoding of the current file can be entered:%! xxd, this command will replace the contents of the file! Restore::%! xdd-r.

Second, input through digraph

There is obviously no special character selection tool in Vim, but there are two ways to enter special characters:

1. Enter a special character (digraph) through two characters.

2. Input directly through the coding value (ASCII or Unicode).

Digraph is a method similar to double spelling, in which two characters are entered successively to represent a special character. You need to press the lead key first, for example, enter in edit mode:

The ®character appears, where "Rg" is the digraph of the character. All digraph can be queried through: help digraph-table.

Third, input through character coding

In addition to digraph, you can enter it directly through character encoding, which does not need to be in the digraph-table of Vim. This is also done in insert mode, which requires pressing the lead key (under Windows).

There are five ways:

Decimal value ASCII: ^ VNN (000)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report