def get_job_attr(job_info, attr_name):
    """ Get the content from a job attribute """
    lines = [s.strip() for s in job_info.split("\n")]

    # Find the line that starts with the attribute
    cmd_line = next((l for l in lines if l.startswith(attr_name)), None)
    if cmd_line is None:
        return None

    cmd = cmd_line.split(" ")[1:]  # first entry is 'cmmand:'
    return cmd