#!/bin/awk -f

# Affiche le tableau html des étudiants/notes dans le groupe
# ./page_groupe_backend {fichier ue} {groupe} {export_dest}

BEGIN {
    FS=","
    OFS=""
    GRP=ARGV[2]
    EXPORT=ARGV[3]
    ARGV[2]=""
    ARGV[3]=""

    print "<table>"
}

$3 == GRP {
    print "<tr><td><a href=etu_" $1 ".html>" $2 "</a></td><td>" $4 "</td>"
}

END {
    print "</table>"
}