source: trunk/minix/man/man1/cut.1@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.6 KB
Line 
1.TH CUT 1
2.SH NAME
3cut \- select out columns of a file
4.SH SYNOPSIS
5\fBcut [ \fB \-b \fR|\fB \-c\fR] \fIlist\fR [\fIfile...\fR]\fR
6.br
7\fBcut \-f \fIlist\fR [\fB\-d \fIdelim\fR] [\fB \-s\fR]\fR [\fIfile...\fR]"
8.br
9.de FL
10.TP
11\\fB\\$1\\fR
12\\$2
13..
14.de EX
15.TP 20
16\\fB\\$1\\fR
17# \\$2
18..
19.SH OPTIONS
20.FL "\-b" "Cut specified bytes"
21.FL "\-c" "Select out specific characters"
22.FL "\-d" "Change the column delimiter to \fIdelim\fR"
23.FL "\-f" "Select out specific fields that are separated by the delimiter character ( see \fIdelim\fR)"
24.FL "\-i" "Runs of delimiters count as one"
25.FL "\-s" "Suppres lines with no delimiter characters, when used with the \-f option. Lines with no delimiters are passwd through untouched"
26.SH EXAMPLES
27.EX "cut \-f 2 file" "Extract field 2"
28.EX "cut \-c 1\-2,5 file" "Extract character columns 1, 2, and 5"
29.EX "cut \-c 1\-5,7\- file" "Extract all columns except 6"
30.SH DESCRIPTION
31.PP
32\fICut\fR extracts one or more fields or columns from a file and writes them on
33standard output.
34If the \fB\-f\fR flag is used, the fields are separated by a delimiter
35character, normally a tab, but can be changed using the \fB\-d\fR flag.
36If the \fB\-c\fR flag is used, specific columns can be specified.
37The list can be comma or BLANK separated. The \fB\-f\fR and
38\fB\-c\fR flags are mutually exclusive.
39Note: The POSIX1003.2 standard requires the option \-b to cut out
40specific bytes in a file. It is intended for systems with multi byte
41characters (e.g. kanji), since MINIX uses only one byte characters,
42this option is equivalent to \-c. For the same reason, the option
43\-n has no effect and is not listed in this manual page.
44.SH "SEE ALSO"
45.BR sed (1),
46.BR awk (9).
Note: See TracBrowser for help on using the repository browser.