Join lines of two sorted files on a field
low risk
Relational join of two files on a common field. Inputs must be sorted on the join field.
| Flag | Meaning |
|---|---|
-1 | Join field in file 1 |
-2 | Join field in file 2 |
-t | Field separator |
-a | Also print unpairable lines |
join -t, a.csv b.csvJoin CSV files on the first field · explain & risk-check →Reference text is hand-written and may be incomplete — check man join for your version. Test destructive commands on a non-production system first.