eta2zero - Display countdown progress bar
This document describes version 0.01 of eta2zero (from Perl distribution App-eta2zero), released on 2015-01-31.
% eta2zero 'command-that-produces-a-number'
Suppose in one terminal you're deleting files in a large directory, which might take a while. You can open another terminal, cd to that directory, and type:
cd
% eta2zero '$[`find -maxdepth 1 | wc -l`] - 1'
It will display a progress bar with ETA:
This script is inspired by the shell version created by Chris Lamb: https://chris-lamb.co.uk/posts/calculating-eta-to-zero-in-shell
Please visit the project's homepage at https://metacpan.org/release/App-eta2zero.
Source repository is at https://github.com/perlancar/perl-App-eta2zero.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-eta2zero
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::eta2zero, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::eta2zero
CPAN shell
perl -MCPAN -e shell install App::eta2zero
For more information on module installation, please visit the detailed CPAN module installation guide.