join do?join the lines of two files that share a common field.
▸ Explain your own join command →$ join -t , -a 1 users.csv orders.csv
$ join file1 file2
| -1 | join on this field number from file 1 |
| -2 | join on this field number from file 2 |
| -t | use this character as the input/output field separator |
| -a | also print unpairable lines from file 1 or 2 (-a 1 / -a 2) |
| -v | print ONLY the unpairable lines from the given file |
| -e | replace empty output fields with this string |
| -o | control the output format (a list of fields) |
| -i | ignore case when comparing the join field |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.