/pdr.awk
AWK | 21 lines | 17 code | 4 blank | 0 comment | 0 complexity | 598ee0f87c3b0e3c848e1e83a9e56b00 MD5 | raw file
Possible License(s): GPL-3.0
- BEGIN {
- sendLine = 0;
- recvLine = 0;
- fowardLine = 0;
- }
- $0 ~/^s.* AGT/ {
- sendLine ++ ;
- }
- $0 ~/^r.* AGT/ {
- recvLine ++ ;
- }
- $0 ~/^f.* RTR/ {
- fowardLine ++ ;
- }
- END {
- printf "%.4f", (recvLine/sendLine);
- }