foreach line (data file) foreach line (keys file) if found print AND break inner loop (last) endif