Skip to content

Подсчет среднего арифметического по данным из столбца

grep 'Requests per second:' *.txt | awk '{ total += $4 } END { print total/NR }'

NR — It gives the total number of records processed.

FNR — It gives the total number of records for each input file.

Published inLinux

Be First to Comment

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *