All apps/join

join

join

Join lines of two sorted files on a common field.

Runs as join|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 10 fields

Equality join of two sorted files on a field. Both inputs must already be sorted on the join field.

Opens the form; the finished command lands at your prompt, unrun
otty gui join
Join two filesExample values, fixed in this page — nothing here reaches a terminal
Basic
File 1*
file
File 2*
file
TasksEach one presets the form for one job
Join on first field
file1file2
Join on a chosen field
file1file2field_bothdelimiter
ParametersOnly these flags are editable in the form
File 1
path · positional 0
File 2
path · positional 1
Join field (both files)
Join on this field of both files.
integer
-j
Join field of file 1
Join on the field-th field of file 1.
integer
-1
Join field of file 2
Join on the field-th field of file 2.
integer
-2
Field delimiter
Character used as field delimiter for input and output.
string
-t
Output fields
Comma-separated list such as 0,1.2,2.3.
string
-o
Empty field filler
Replace empty output fields with this string.
string
-e
Also print unpairable lines of file
File number (1 or 2) whose unpairable lines are printed too.
integer
-a
Only unpairable lines of file
File number (1 or 2) whose unpairable lines are printed instead of the default output.
integer
-v
SourcesEvery flag above is checked against these
src
completion

github.com

Before it fills your prompt, Otty checks the installed join against its version. A form that does not match your version is not offered.