Man page - cut(1)

Packages contains this manual

Available languages:

en fr es pl vi nb nl da tr hu sv ja uk fi ru ro zh_TW sr zh_CN de

Manual

CUT

名 称
概 述
描 述
作 者
报 告 错 误
版 权
参 见


名 称

cut - 从 文 件 的 每 一 行 中 移 除 某 些 段

概 述

cut 选 项 ... [ 文 件 列 表 ]...

描 述

从 每 个 输 入 文 件 中 输 出 指 定 部 分 到 标 准 输 出 。

如 果 没 有 指 定 文 件 , 或 者 指 定 文 件 为 “-”, 则 从 标 准 输 入 读 取 。

必 选 参 数 对 长 短 选 项 同 时 适 用 。
-b
, --bytes = 列 表

只 选 中 指 定 的 这 些 字 节

-c , --characters = 列 表

只 选 中 指 定 的 这 些 字 符

-d , --delimiter = 分 界 符

使 用 指 定 分 界 符 代 替 制 表 符 作 为 区 域 分 界

-f , --fields = 列 表

只 选 中 指 定 的 这 些 域 ; 并 打 印 所 有 不 包 含 分 界 符 的 行 , 除 非 同 时 指 定 了 -s 选 项

-n

( 被 忽 略 的 选 项 )

--complement

补 全 选 中 的 字 节 、 字 符 或 域

-s , --only-delimited

do not print lines not containing delimiters

--output-delimiter = STRING

use STRING as the output delimiter the default is to use the input delimiter

-z , --zero-terminated

以 NUL 空 字 符 而 非 换 行 符 作 为 行 分 隔 符

--help

显 示 此 帮 助 信 息 并 退 出

--version

显 示 版 本 信 息 并 退 出

Use one, and only one of -b , -c or -f . Each LIST is made up of one range, or many ranges separated by commas. Selected input is written in the same order that it is read, and is written exactly once. Each range is one of:

N

第 N 个 字 节 、 字 符 或 字 段 ( 从 1 开 始 数 )

N-

从 第 N 个 字 符 、 字 节 或 字 段 , 到 行 末

N-M

从 第 N 个 到 第 M 个 ( 包 括 第 M 个 ) 字 符 、 字 节 或 字 段

-M

从 第 1 个 到 第 M 个 ( 包 括 第 M 个 ) 字 符 、 字 节 或 字 段

作 者

由 David M. Ihnat、 David MacKenzie 和 Jim Meyering 编 写 。

报 告 错 误

GNU coreutils 的 在 线 帮 助 : <https://www.gnu.org/software/coreutils/>
请 向 <https://translationproject.org/team/zh_CN.html> 报 告 翻 译 错 误 。

版 权

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
本 软 件 是 自 由 软 件 : 您 可 以 自 由 修 改 和 重 新 发 布 它 。 在 法 律 允 许 的 范 围 内 , 不 提 供 任 何 保 证 。

参 见

完 整 文 档 请 见 : <https://www.gnu.org/software/coreutils/cut>
或 者 在 本 地 使 用 : info '(coreutils) cut invocation'

本 页 面 中 文 版 由 中 文 man 手 册 页 计 划 提 供 。
中 文 man 手 册 页 计 划 : https://github.com/man-pages-zh/manpages-zh