From 9dfd16bdbe5af319aa9109307b2c4610dbe7d709 Mon Sep 17 00:00:00 2001 From: witt <52407727+witt-bit@users.noreply.github.com> Date: Thu, 6 Feb 2025 09:58:53 +0800 Subject: [PATCH] cut: add chinese translation (#15572) --- pages.zh/common/cut.md | 20 ++++++++++++++++++++ pages/common/cut.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 pages.zh/common/cut.md diff --git a/pages.zh/common/cut.md b/pages.zh/common/cut.md new file mode 100644 index 0000000000..41ad10d875 --- /dev/null +++ b/pages.zh/common/cut.md @@ -0,0 +1,20 @@ +# cut + +> 从标准输入或文件中剪切字段。 +> 更多信息:. + +- 打印每行的特定字符/或属性范围: + +`{{命令}} | 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}}` diff --git a/pages/common/cut.md b/pages/common/cut.md index e154a47ad0..d13ff9eee1 100644 --- a/pages/common/cut.md +++ b/pages/common/cut.md @@ -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: