cygwin package coreutils fornece o comando join
.
Conforme relatado no link
join: Join lines on a common field
join writes to standard output a line for each pair of input lines that have identical join fields. Synopsis:
join [option]… file1 file2
Either file1 or file2 (but not both) can be ‘-’, meaning standard input. file1 and file2 should be sorted on the join fields.
veja o link ou página de manual para uso completo.