パイプ処理の進捗状況を表示 pipeprogress の紹介

はじめに

この資料は Rust 製のコマンドラインツール pipeprogress について紹介するものです。

Rustの環境構築やツールのインストール方法については以下を参照してください

Rust開発環境を整える

pipeprogress について

pipeprogress は、パイプ処理で長い操作中の進捗状況を表示するためのCLIツールです。

GitHub - salt-labs/pipeprogress: A CLI utility for keeping you entertained on long running commands.

使用方法

pp [OPTIONS]

オプション

使用例

❯ 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