random man page update: cut.1

This commit is contained in:
David van Moolenbroek 2009-06-24 21:13:28 +00:00
parent 3018cd023a
commit be9606a4e0

View File

@ -2,9 +2,9 @@
.SH NAME .SH NAME
cut \- select out columns of a file cut \- select out columns of a file
.SH SYNOPSIS .SH SYNOPSIS
\fBcut [ \fB \-b \fR|\fB \-c\fR] \fIlist\fR [\fIfile...\fR]\fR \fBcut \fR[\fB\-b \fR|\fB \-c\fR] \fIlist\fR [\fIfile...\fR]\fR
.br .br
\fBcut \-f \fIlist\fR [\fB\-d \fIdelim\fR] [\fB \-s\fR]\fR [\fIfile...\fR]" \fBcut \-f \fIlist\fR [\fB\-d \fIdelim\fR] [\fB \-s\fR]\fR [\fIfile...\fR]
.br .br
.de FL .de FL
.TP .TP
@ -17,12 +17,12 @@ cut \- select out columns of a file
# \\$2 # \\$2
.. ..
.SH OPTIONS .SH OPTIONS
.FL "\-b" "Cut specified bytes" .FL "\-b" "Cut specified bytes."
.FL "\-c" "Select out specific characters" .FL "\-c" "Select out specific characters."
.FL "\-d" "Change the column delimiter to \fIdelim\fR" .FL "\-d" "Change the column delimiter to \fIdelim\fR."
.FL "\-f" "Select out specific fields that are separated by the delimiter character ( see \fIdelim\fR)" .FL "\-f" "Select out specific fields that are separated by the delimiter character (see \fIdelim\fR)."
.FL "\-i" "Runs of delimiters count as one" .FL "\-i" "Runs of delimiters count as one."
.FL "\-s" "Suppres lines with no delimiter characters, when used with the \-f option. Lines with no delimiters are passwd through untouched" .FL "\-s" "Suppress lines with no delimiter characters, when used with the \-f option. Lines with no delimiters are passed through untouched."
.SH EXAMPLES .SH EXAMPLES
.EX "cut \-f 2 file" "Extract field 2" .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\-2,5 file" "Extract character columns 1, 2, and 5"
@ -36,10 +36,10 @@ 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. 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 The list can be comma or BLANK separated. The \fB\-f\fR and
\fB\-c\fR flags are mutually exclusive. \fB\-c\fR flags are mutually exclusive.
Note: The POSIX1003.2 standard requires the option \-b to cut out Note: The POSIX1003.2 standard requires the option \fB\-b\fR to cut out
specific bytes in a file. It is intended for systems with multi byte specific bytes in a file. It is intended for systems with multi byte
characters (e.g. kanji), since MINIX uses only one byte characters, characters (e.g. kanji), since MINIX uses only one byte characters,
this option is equivalent to \-c. For the same reason, the option this option is equivalent to \fB\-c\fR. For the same reason, the option
\-n has no effect and is not listed in this manual page. \-n has no effect and is not listed in this manual page.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR sed (1), .BR sed (1),