join [options] file1 file2Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
join users.txt departments.txtCombines lines with matching first fields.
join -1 1 -2 2 a.txt b.txtUses field 1 from a.txt and field 2 from b.txt.
| Field | Details |
|---|---|
| Command | join |
| Category | Text Processing |
| Primary use | Joins sorted files on a common field. |
| Syntax | join [options] file1 file2 |