在第一行,简单地将要执行的命令以反引号括起。
On the first line, we simply enclosed the command we wanted to execute in back quotes.
PS 1可以包含其他shell和环境变量、置换命令运算(通过反引号)和特殊的字面值。
PS1 can contain other shell and environment variables, in-place command evaluation (via backquotes), and specialized literals. Here's an initial example.
注意,我们又使用了反引号语法来书写多行字符串。
Notice that we again use the back-tick notation for multi-line strings.
在反引号之间可以放置除反引号本身之外的任意字符。
Within the quotes, any character is legal except back quote.
为了避免命令行解释器删除引号,应该加上一个反斜杠(\)。
To avoid that the quotation marks are removed by the command line interpreter, they are masked with a backslash (\).
反斜杠会被解释成单个字符,除非后面紧接着一个双引号。
Backslashes are interpreted literally, unless they immediately precede a double quotation mark.
所以,如果我想用单引号编码O'Reilly,我就必须使用反斜杠对它进行转义:'O\'Reilly'。
So, if I want to encode O'Reilly in a single quoted string, I must escape it using backslash, 'O\'Reilly'.
这有助于检测一些常见错误,如遗漏的或多余的引号、遗漏的反花括号等。
This helps detect common errors like missing or extraneous quotes, missing closing braces, etc.
该函数使用一个正则表达式将一个单引号标记更改为带有反斜杠的单引号标记。
That function USES a regular expression to change a single quotation mark into backslashed single quotation mark.
一般来说,gnuplot在双引号内的字符串中进行类似于c的反斜杠处理。
In general, gnuplot does C-like backslash processing within double quoted strings.
当然,这三种操作符(单引号、双引号和反撇号)都有合法的用途,但是与英语中的例外一样,记住和掌握这些细微差异很令人头疼。
Certainly, all three operators-the single, double, and back quotation marks-serve a valid purpose, but like exceptions in English, memorizing and mastering the variations can be maddening.
不带反斜杠的第一个后引号终止命令替换。
The first backquote not preceded by a backslash terminates the command substitution.
不带反斜杠的第一个后引号终止命令替换。
The first backquote not preceded by a backslash terminates the command substitution.
应用推荐