cut: add chinese translation (#15572)

This commit is contained in:
witt
2025-02-06 09:58:53 +08:00
committed by GitHub
parent 508c8688d7
commit 9dfd16bdbe
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
# cut
> 从标准输入或文件中剪切字段。
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/cut-invocation.html>.
- 打印每行的特定字符/或属性范围:
`{{命令}} | cut -{{characters|fields}} {{1|1,10|1-10|1-|-10}}`
- 打印每行由指定分隔符分割的属性范围:
`{{命令}} | cut --delimiter "{{分隔符}}" --fields {{1|1,10|1-10|1-|-10}}`
- 打印文件每行的字符范围:
`cut --characters {{1|1,10|1-10|1-|-10}} {{路径/到/文件}}`
- 打印以 `NUL` 结尾的行的特定字段(例如 `find . -print0`)而不是换行符:
`{{命令}} | cut --zero-terminated --fields {{1}}`
+1 -1
View File
@@ -9,7 +9,7 @@
- Print a [f]ield range of each line with a specific [d]elimiter:
`{{command}} | cut --delimiter "{{,}}" --fields {{1}}`
`{{command}} | cut --delimiter "{{delimiter}}" --fields {{1|1,10|1-10|1-|-10}}`
- Print a [c]haracter range of each line of the specific file: