^: update Chinese translation (#14135)

This commit is contained in:
Yi Liu
2024-10-13 06:05:34 +08:00
committed by GitHub
parent c27f921f2d
commit 780cf44a18

View File

@@ -1,17 +1,21 @@
# Caret
> Bash 中,有一个内建命令可以快速替换一个命令中的字符串并行结果。
> 相当于 `!!:s^string1^string2`。
> Bash 内置命令,用于快速替换一个命令中的字符串并行结果。
> 等效于 `!!:s^string1^string2`。
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
- 运行一个命令,将`字符串1`替换为`字符串2`
- 运行一个命令,将 `字符串 1` 替换为 `字符串 2`
`^{{字符串 1}}^{{字符串 2}}`
-一个命令中移除`字符串1`
-一个命令中移除 `字符串 1`
`^{{字符串 1}}^`
-一个命令中将`字符串1`替换为`字符串2`,并在末尾添加`字符串3`
-一个命令中将 `字符串 1` 替换为 `字符串 2`,并在末尾添加 `字符串 3`
`^{{字符串 1}}^{{字符串 2}}^{{字符串 3}}`
- 替换所有出现的 `字符串 1`
`^{{字符串 1}}^{{字符串 2}}^:&`