パイプ処理の進捗状況を表示 pipeprogress の紹介
この資料は Rust 製のコマンドラインツール pipeprogress について紹介するものです。
Rustの環境構築やツールのインストール方法については以下を参照してください
pipeprogress は、パイプ処理で長い操作中の進捗状況を表示するためのCLIツールです。
GitHub - salt-labs/pipeprogress: A CLI utility for keeping you entertained on long running commands.
pp [OPTIONS]
-h
, —-help
ヘルプ情報を表示する-V
, —-version
バージョン情報を表示する-i
, --infile
<INFILE>
標準入力ではなく、ファイルから読み込む-o
, --outfile
<OUTFILE>
標準出力ではなく、ファイルに書き出す-s
, --silent
なにも出力しない❯ dd if=/dev/urandom bs=1M count=1024 | ~/.cargo/bin/pp | dd of=/dev/null
1066418176 0:00:07 [1621332b/s]1024+0 records in
1024+0 records out
1073741824 bytes transferred in 7.057896 secs (152133415 bytes/sec)
2096556+1177 records in
2097152+0 records out
1073741824 bytes transferred in 7.158432 secs (149996790 bytes/sec)
実行したコマンドラインの次の行で進捗状況を表示します。
1066418176 0:00:07 [1621332b/s]1024+0 records in