mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
cut: add chinese translation (#15572)
This commit is contained in:
parent
508c8688d7
commit
9dfd16bdbe
2 changed files with 21 additions and 1 deletions
20
pages.zh/common/cut.md
Normal file
20
pages.zh/common/cut.md
Normal 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}}`
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue