diff options
author | hubertf <hubertf@NetBSD.org> | 2004-03-09 17:04:24 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 2004-03-09 17:04:24 +0000 |
commit | d9415b521c515095fba42397975441dfbfb487d8 (patch) | |
tree | 731648ee58873672e9ead73fa33f3321931c48cc /progress.1 | |
parent | 3cac59fa5b5b8e6ebd1ec4c9a16728fcfa27cd9b (diff) | |
download | bsd-progress-d9415b521c515095fba42397975441dfbfb487d8.tar.gz bsd-progress-d9415b521c515095fba42397975441dfbfb487d8.tar.zst bsd-progress-d9415b521c515095fba42397975441dfbfb487d8.zip |
Allow custom text printed before (left of) the progress bar from progress(1):
miyu# cat openoffice-linux-1.1.0.tgz | progress -z -p 'Bytes written: ' dd of=/dev/null bs=1m
Bytes written: 193 MB 13.83 MB/s 0+195211 records in
and:
miyu# progress -f openoffice-linux-1.1.0.tgz -z -p 'Bytes written: ' dd of=/dev/null bs=1m
Bytes written: 28% |****** | 57919 KB 14.12 MB/s 00:09 ETA
OK'd by lukem.
Diffstat (limited to 'progress.1')
-rw-r--r-- | progress.1 | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\" $NetBSD: progress.1,v 1.5 2003/02/14 15:59:18 grant Exp $ +.\" $NetBSD: progress.1,v 1.6 2004/03/09 17:04:24 hubertf Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -30,7 +30,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 21, 2003 +.Dd March 5, 2004 .Dt PROGRESS 1 .Os .Sh NAME @@ -41,6 +41,7 @@ .Op Fl z .Op Fl f Ar file .Op Fl l Ar length +.Op Fl p Ar prefix .Ar cmd .Op Ar args ... .Sh DESCRIPTION @@ -72,6 +73,10 @@ instead of standard input. Use the specified length for the time estimate, rather than attempting to .Xr fstat 2 the input. +.It Fl p Ar prefix +Print the given +.Dq prefix +text before (left of) the progress bar. .It Fl z Filter the input through .Xr gzip 1 . |