| Crates.io | cli_pipeviewer |
| lib.rs | cli_pipeviewer |
| version | 0.1.0 |
| created_at | 2023-11-12 15:22:16.724878+00 |
| updated_at | 2023-11-12 15:22:16.724878+00 |
| description | An educational version of the pv utility |
| homepage | https://github.com/projectfinalaudio/PIPE_VIEWER |
| repository | https://github.com/projectfinalaudio/PIPE_VIEWER |
| max_upload_size | |
| id | 1032802 |
| size | 28,293 |
Generate a file named, myfile with 128kbps of random data.
dd if=/dev/urandom bs=1024 count=128 of=myfile
ls -lh
cargo build
cat myfile | target/release/pipeviewer > myfile2
yes | cargo run | head -n 1 > /dev/null
yes | cargo run | head -n 100000000 > /dev/null
cargo run -- -h
cargo run -- somefile --outfile file.out -s
PV_SILENT=1 cargo run -- somefile --outfile file.out -s
echo "some input" | cargo run --
echo "some input" | cargo run -- > /dev/null
echo "some input" | cargo run -- -o /dev/null
echo "some input" | cargo run -- -o output.txt
echo "some input" | cargo run -- output.txt -o /dev/null
echo "some input" | cargo run -- output.txt --silent / -s
yes | cargo run -- -o yes.txt
cargo run -- yes.txt -o /dev/null
cargo run -- yes.txt -o yes2.txt
cargo run -- yes2.txt -- > yes3.txt
yes | cargo run -- | head -n 100000000 > /dev/null