def short(products, field):
    """Creates a bash completion list for data

    Parameters
    ----------
    products: list
        list of products data
    field: str
        the field name that should be formated

    Returns
    -------
    str
        formated string with unique fields and spces converted to underscore
    """

    li = []
    for p in products:
        if not p[field].replace(" ", "_") in li:
            li.append(p[field].replace(" ", "_"))
    return li