import re


def get_task_id(task, timestamp):
    """
    Generates task ID with format "<timestamp>-<task_name>".

    :param task: parsed configuration of one task from the whole configuration file
    :param timestamp: timestamp of the task
    :return: normalized file name
    """
    task_id = "{timestamp}-{name}".format(timestamp=timestamp, name=task["name"][:50].lower())
    # Remove invalid characters from the tak name
    return re.sub(r'[ @#$%^&*<>{}:|;\'\\\"/]', r'_', task_id)