This chapter is from the book
join
The join command merges files into a single file by using a common field. The two files must already be sorted on the common field before the join command is run. See Figure 10.1 for an example.
Figure 10.1 Using the join Command