add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

17
pages.zh/common/sed.md Normal file
View File

@@ -0,0 +1,17 @@
# sed
> 以可脚本化的方式编辑文本。
> 另见:`awk``ed`。
> 更多信息:<https://manned.org/sed.1posix>。
- 将所有输入行中的 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并将结果打印到 `stdout`
`{{command}} | sed 's/apple/mango/g'`
- 执行特定的脚本 [f]ile并将结果打印到 `stdout`
`{{command}} | sed -f {{path/to/script.sed}}`
- 仅将第一行打印到 `stdout`
`{{command}} | sed -n '1p'`