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

20
pages.zh/common/sd.md Normal file
View File

@@ -0,0 +1,20 @@
# sd
> 直观的查找和替换。
> 更多信息:<https://github.com/chmln/sd>。
- 使用正则表达式修剪一些空白(输出流:`stdout`
`{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''`
- 使用捕获组替换单词(输出流:`stdout`
`{{echo 'cargo +nightly watch'}} | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'`
- 在特定文件中查找和替换(输出流:`stdout`
`sd -p {{'window.fetch'}} {{'fetch'}} {{path/to/file.js}}`
- 在当前项目的所有文件中查找和替换(输出流:`stdout`
`sd {{'from "react"'}} {{'from "preact"'}} "$(find . -type f)"`