From d9415b521c515095fba42397975441dfbfb487d8 Mon Sep 17 00:00:00 2001 From: hubertf Date: Tue, 9 Mar 2004 17:04:24 +0000 Subject: 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. --- progress.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'progress.1') diff --git a/progress.1 b/progress.1 index 239e557..59a87c0 100644 --- a/progress.1 +++ b/progress.1 @@ -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 . -- cgit v1.2.3