Answers:
在pv1.2.0(2010年12月)及更高版本中,具有以下-a选项:
在这里,基于当前和平均,基于行:
$ find / 2> /dev/null | pv -ral > /dev/null
[6.28k/s] [70.1k/s]
在1.3.8(2012年10月)及更高版本中,您还可以将-F/ --format与配合使用%a:
$ find / 2> /dev/null | pv -lF 'current: %r, average: %a'  > /dev/null
current: [4.66k/s], average: [ 218k/s]
请注意,tail -f首先转储文件的最后10行。使用tail -n 0 -f file | pv -la以避免在您的平均速度计算这种偏见。