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.
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.
Be First to Comment