我在'command |中使用pv -f管道pv -f |命令2' 。 pv显示了这样的进度条
83.6MB 0:00:03 [27.9MB/s] [ <=> ]
当pv退出时,它会显示更多信息。我怎样才能只显示进度条?
500+0 records in28.3MB/s] [ <=> ]
500+0 records out
524288000 bytes (524 MB) copied, 17.6912 s, 29.6 MB/s
500MB 0:00:17 [28.3MB/s] [ <=> ]
1024000+0 records in
1024000+0 records out
524288000 bytes (524 MB) copied, 17.6956 s, 29.6 MB/s
修改
我的测试用例是
dd if=/dev/zero bs=100k count=80000 | pv -f | dd of=/dev/null