⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cut.1

📁 操作系统设计与实现源码
💻 1
字号:
.TH CUT 1.SH NAMEcut \- select out columns of a file.SH SYNOPSIS\fBcut [ \fB \-b \fR|\fB \-c\fR] \fIlist\fR [\fIfile...\fR]\fR.br\fBcut \-f \fIlist\fR [\fB\-d \fIdelim\fR] [\fB \-s\fR]\fR.br.de FL.TP\\fB\\$1\\fR\\$2...de EX.TP 20\\fB\\$1\\fR# \\$2...SH OPTIONS.FL "\-b" "Cut specified bytes".FL "\-c" "Select out specific characters".FL "\-d" "Change the column delimiter to \fIdelim\fR".FL "\-f" "Select out specific fields that are separated by the.FL "\-i" "Runs of delimiters count as one".FL "\-s" "Suppres lines with no delimiter characters, when used.SH EXAMPLES.EX "cut \-f 2 file" "Extract field 2".EX "cut \-c 1\-2,5 file" "Extract character columns 1, 2, and 5".EX "cut \-c 1\-5,7\- file" "Extract all columns except 6".SH DESCRIPTION[\fIfile...\fR]" delimiter character ( see \fIdelim\fR)"with the \-f option. Lines with no delimiters are passwd throughuntouched".PP\fICut\fR extracts one or more fields or columns from a file and writes them onstandard output.If the \fB\-f\fR flag is used, the fields are separated by a delimiter character, normally a tab, but can be changed using the \fB\-d\fR flag.If the \fB\-c\fR flag is used, specific columns can be specified.The list can be comma or BLANK separated. The \fB\-f\fR and\fB\-c\fR flags  are mutually exclusive.Note: The POSIX1003.2 standard requires the option \-b to cut outspecific bytes in a file. It is intended for systems with multi bytecharacters (e.g. kanji), since MINIX uses only one byte characters,this option is equivalent to \-c. For the same reason, the option\-n has no effect and is not listed in this manual page..SH "SEE ALSO".BR sed (1),.BR awk (9).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -