在linux中符号^ \是什么意思

时间:2021-05-30 16:57:16

I got a file output from my perl script.

我从perl脚本获得了一个文件输出。

When I use less to open it less output it looks like this: ABCDEFG^\HIJKLMN

当我使用少打开它输出看起来是这样的:英语字母^ \ HIJKLMN

When I use cat or head to open it head output it looks like this ABCDEFGHIJKLMN

当我使用cat或head打开它的head输出它看起来像这个ABCDEFGHIJKLMN

So I want to ask what is the ^\ symbol?

所以我想问^ \符号是什么?

1 个解决方案

#1


2  

This representation is known as "caret notation" and is one notation used by some tools and editors to show undrawable control characters.

这种表示法称为“插入符号”,是一些工具和编辑器用来显示不可画控制字符的一种表示法。

^\ in particular represents the ASCII file separator character, aka "FS" or 0x1C.

^ \特别是表示ASCII文件分隔符,又名“FS”或0 x1c。

You can determine this manually by taking the ASCII value of the backslash (0x5C) and substracting 0x40, giving 0x1C. Should you want to input it in a terminal, you can press Ctrl+\.

您可以通过提取反斜杠(0x5C)的ASCII值并对0x40进行分段,得到0x1C,来手动确定这一点。如果要在终端中输入,可以按Ctrl+\。

This character is not used in any meaningful sense today. How it got into your perl script output is anyone's guess.

这个字在今天没有任何意义。任何人都在猜测它是如何进入perl脚本输出的。

#1


2  

This representation is known as "caret notation" and is one notation used by some tools and editors to show undrawable control characters.

这种表示法称为“插入符号”,是一些工具和编辑器用来显示不可画控制字符的一种表示法。

^\ in particular represents the ASCII file separator character, aka "FS" or 0x1C.

^ \特别是表示ASCII文件分隔符,又名“FS”或0 x1c。

You can determine this manually by taking the ASCII value of the backslash (0x5C) and substracting 0x40, giving 0x1C. Should you want to input it in a terminal, you can press Ctrl+\.

您可以通过提取反斜杠(0x5C)的ASCII值并对0x40进行分段,得到0x1C,来手动确定这一点。如果要在终端中输入,可以按Ctrl+\。

This character is not used in any meaningful sense today. How it got into your perl script output is anyone's guess.

这个字在今天没有任何意义。任何人都在猜测它是如何进入perl脚本输出的。