一个Rust编写的查看管道传输速率的命令行工具
# clone this project:
git clone --depth=1 https://https://github.com/hanginfty/pipeviewer
cd pipeviewer
cargo build --release
pv --help
pipeviewer
USAGE:
pipeviewer [FLAGS] [OPTIONS] [infile]
FLAGS:
-h, --help Prints help information
-s, --silent
-V, --version Prints version information
OPTIONS:
-o, --outfile <outfile> Write output to a file instead of stdout.
ARGS:
<infile> Read file from a file instead of stdin
# receive standard input, print bytes received & rate
echo "hello rust" | pv
# receive standard input, write in outputfile if specify '-o' flag
yes | pv -o > /dev/null