wmi-parprog/04_AWK/1.awk

17 lines
176 B
Awk
Raw Normal View History

2024-03-18 18:15:48 +01:00
BEGIN {
print "POCZATEK"
sum = 0.0;
}
{
country = $1;
if ($2 > 40)
print country, $2, NF
sum += $2;
}
END {
print "KONIEC"
print "Sum of the 2nd columns is ", sum
}