import re


def grep_line(path, taxid):
    """Return the first line in the file at path beginning with taxid."""
    file = open(path, "r")
    for line in file:
        if re.match(str(taxid)+r'\s', line):
            return line
    return False