Hi Daniel,
Daniel Baumann wrote:
Decompression is faster than compression
true; however, i regularly decompress rather large files (>50GB) for
which it would be nice to have a progress bar. for the moment i'm
cat'ing them through pv.
Interesting. I didn't know.
Implementing a progress indicator for decompression (similar to the one
already existing for compression) would not be difficult. The problem is
that the --verbose option is already overloaded[1], and that I would
like to make the progress indicator compatible with the information
currently displayed by --verbose. I think a new option would be needed
to enable the progress indicator.
Do you have any suggestions about what option name to use and how to
achieve the goal above (maybe writing the progress info directly to the
controlling terminal to avoid mangling stderr)? Thanks.
[1] http://www.nongnu.org/lzip/manual/lzip_manual.html#Invoking-lzip
-v
--verbose
Verbose mode.
When compressing, show the compression ratio for each file
processed. A second '-v' shows the progress of compression.
When decompressing or testing, further -v's (up to 4) increase the
verbosity level, showing status, compression ratio, dictionary size,
trailer contents (CRC, data size, member size), and up to 6 bytes of
trailing data (if any) both in hexadecimal and as a string of printable
ASCII characters.
Best regards,
Antonio.
_______________________________________________
Lzip-bug mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lzip-bug