join
v(uutils coreutils) 0.1.0
Options
-a <FILENUM>
-
join-help-a
-v <FILENUM>
-
join-help-v
-e <EMPTY>
-
join-help-e
--ignore-case
,-i
-
join-help-i
-j <FIELD>
-
join-help-j
-o <FORMAT>
-
join-help-o
-t <CHAR>
-
join-help-t
-1 <FIELD>
-
join-help-1
-2 <FIELD>
-
join-help-2
--check-order
-
join-help-check-order
--nocheck-order
-
join-help-nocheck-order
--header
-
join-help-header
--zero-terminated
,-z
-
join-help-z
Examples
Join two files on the first (default) field:
join {{path/to/file1}} {{path/to/file2}}
Join two files using a comma (instead of a space) as the field separator:
join -t {{','}} {{path/to/file1}} {{path/to/file2}}
Join field3 of file1 with field1 of file2:
join -1 {{3}} -2 {{1}} {{path/to/file1}} {{path/to/file2}}
Produce a line for each unpairable line for file1:
join -a {{1}} {{path/to/file1}} {{path/to/file2}}
Join a file from stdin
:
cat {{path/to/file1}} | join - {{path/to/file2}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.