BEGIN{ RS="\n\n" # Separateur d'enregistrement FS="\n" # Separateur de ligne # En-tete et debut de page HTML print "" print "" print "Informations CPU et mémoire" print "" print "" print "" print "" } FILENAME ~ /cpuinfo$/ { print "
"} FILENAME ~ /meminfo$/ { print "" } END{ # Fin de page HTML print "
"} { for(i=1; i<=NF; i++){ split($i, cpu, ":") if(i==1) print "" else print "" } print "
", cpu[1], cpu[2], "
", cpu[1], "", cpu[2], "
" print "" print "" }