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

@@ -0,0 +1,20 @@
# ts
> 为每一行从 `stdin` 添加时间戳。
> 更多信息:<https://joeyh.name/code/moreutils/>。
- 在每一行的开头添加时间戳:
`{{command}} | ts`
- 添加具有微秒精度的时间戳:
`{{command}} | ts "{{%b %d %H:%M:%.S}}"`
- 从零开始添加具有微秒精度的[增量]时间戳:
`{{command}} | ts -i "{{%H:%M:%.S}}"`
- 将文本文件(例如日志文件)中现有的时间戳转换为[相对]格式:
`cat {{path/to/file}} | ts -r`