Relational join for sorted text files.
Section: sed awk and Structured Text Workflows
Join two files on a common field
bash
bash
join -1 1 -2 1 users.txt emails.txtExplanation
Useful when doing small-scale data joins in shell pipelines.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed awk and Structured Text Workflows