format translation: update
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
30c2bd4c7c
commit
b33795f8ab
@@ -14,7 +14,7 @@
|
||||
|
||||
`sed -i '' 's/{{查找内容}}/{{替换内容}}/g' {{文件名}}`
|
||||
|
||||
- 仅替换与行模式(一种搜索条件)匹配的行内容:
|
||||
- 仅替换与行模式(一种搜索条件)匹配的行内容:
|
||||
|
||||
`sed '/{{行模式}}/s/{{查找内容}}/{{替换内容}}/' {{文件名}}`
|
||||
|
||||
@@ -26,6 +26,6 @@
|
||||
|
||||
`sed -e 's/{{查找内容}}/{{替换内容}}/' -e 's/{{查找内容}}/{{替换内容}}/' {{文件名}}`
|
||||
|
||||
- 将分隔符 / 替换为查找或替换模式中没有用到的的任何其他字符,例如 # (用于查找或替换内容中使用了 / 的情况):
|
||||
- 将分隔符 / 替换为查找或替换模式中没有用到的的任何其他字符,例如 # (用于查找或替换内容中使用了 / 的情况):
|
||||
|
||||
`sed 's#{{查找内容}}#{{替换内容}}#' {{文件名}}`
|
||||
|
Reference in New Issue
Block a user