cut
: Print selected parts of lines
cut
writes to standard output selected parts of each line of each
input file, or standard input if no files are given or for a file name of
`-'. Synopsis:
cut [option]... [file]...
In the table which follows, the byte-list, character-list, and field-list are one or more numbers or ranges (two numbers separated by a dash) separated by commas. Bytes, characters, and fields are numbered from starting at 1. Incomplete ranges may be given: `-m' means `1-m'; `n-' means `n' through end of line or last field.
The program accepts the following options. Also see section Common options.
paste
: Merge lines of files
paste
writes to standard output lines consisting of sequentially
corresponding lines of each given file, separated by TAB.
Standard input is used for a file name of `-' or if no input files
are given.
Synopsis:
paste [option]... [file]...
The program accepts the following options. Also see section Common options.
join
: Join lines on a common field
join
writes to standard output a line for each pair of input
lines that have identical join fields. Synopsis:
join [option]... file1 file2
Either file1 or file2 (but not both) can be `-',
meaning standard input. file1 and file2 should be already
sorted in increasing order (not numerically) on the join fields; unless
the `-t' option is given, they should be sorted ignoring blanks at
the start of the join field, as in sort -b
. If the
`--ignore-case' option is given, lines should be sorted without
regard to the case of characters in the join field, as in sort -f
.
The defaults are: the join field is the first field in each line; fields in the input are separated by one or more blanks, with leading blanks on the line ignored; fields in the output are separated by a space; each output line consists of the join field, the remaining fields from file1, then the remaining fields from file2.
The program accepts the following options. Also see section Common options.
join
that functionality, POSIX invented the `0'
field specification notation.
The elements in field-list
are separated by commas or blanks. Multiple field-list
arguments can be given after a single `-o' option; the values
of all lists given with `-o' are concatenated together.
All output lines -- including those printed because of any -a or -v
option -- are subject to the specified field-list.
In addition, when GNU join
is invoked with exactly one argument,
options `--help' and `--version' are recognized. See section Common options.
Go to the first, previous, next, last section, table of contents.