mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 12:05:35 +03:00
^: add Chinese translation (#13104)
This commit is contained in:
parent
b4b05b6d3d
commit
140f8896dd
17
pages.zh/common/^.md
Normal file
17
pages.zh/common/^.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Caret
|
||||||
|
|
||||||
|
> 在 Bash 中,有一个内建命令可以快速替换前一个命令中的字符串并执行结果。
|
||||||
|
> 相当于 `!!:s^string1^string2`。
|
||||||
|
> 更多信息:<https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||||
|
|
||||||
|
- 运行前一个命令,将`字符串1`替换为`字符串2`:
|
||||||
|
|
||||||
|
`^{{字符串1}}^{{字符串2}}`
|
||||||
|
|
||||||
|
- 从前一个命令中移除`字符串1`:
|
||||||
|
|
||||||
|
`^{{字符串1}}^`
|
||||||
|
|
||||||
|
- 在前一个命令中将`字符串1`替换为`字符串2`,并在末尾添加`字符串3`:
|
||||||
|
|
||||||
|
`^{{字符串1}}^{{字符串2}}^{{字符串3}}`
|
Loading…
Reference in New Issue
Block a user