awk -F"#" '{ if (NF>0) { somme=0 for(Champ=1; Champ <= NF; Champ++) { somme = somme + $Champ } print $0, "Moyenne=", somme/NF } }' $*