join: Read doc_data.txt correctly

Before, grepping for Num could return more than one result, which is a
bug.  So fix it by making the grep more precise.