mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-10-30 18:53:35 +08:00
cut: add chinese translation (#15572)
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user