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/tee.md Normal file
View File

@@ -0,0 +1,20 @@
# tee
> 从 `stdin` 读取并写入到 `stdout` 和文件(或命令)。
> 更多信息:<https://www.gnu.org/software/coreutils/tee>.
-`stdin` 复制到每个文件,并同时写入 `stdout`
`echo "example" | tee {{path/to/file}}`
- 追加到给定的文件,而不覆盖:
`echo "example" | tee -a {{path/to/file}}`
-`stdin` 打印到终端,同时将其传递给另一个程序以进行进一步处理:
`echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}`
- 创建一个名为 "example" 的目录,计算 "example" 中的字符数量,并将 "example" 写入终端:
`echo "example" | tee >(xargs mkdir) >(wc -c)`