timeout 10h tcpdump -n -e host 127.0.0.1 -w /tmp/traffic_10h.log
tcpdump -e -n -r /tmp/traffic_10h.log tcp | sed -r -E -n "s/(^.*, length) ([0-9]{1,4}):(.*)/\2/p" | awk '{sum+=$1; print sum}' | numfmt --to=iec-i --suffix=B --padding=7
timeout 10h tcpdump -n -e host 127.0.0.1 -w /tmp/traffic_10h.log
tcpdump -e -n -r /tmp/traffic_10h.log tcp | sed -r -E -n "s/(^.*, length) ([0-9]{1,4}):(.*)/\2/p" | awk '{sum+=$1; print sum}' | numfmt --to=iec-i --suffix=B --padding=7