Last Updated: February 25, 2016
·
4.886K
· alanthing

Progress bar with compression

Wish you had an idea of when your bzip2 operation was complete? Install pv with your package manager and use like so:

pv largefile.log | bzip2 > largefile.log.bz2

Swap out "bzip2" for "gzip" or any other compression application and it works the same.

2 Responses
Add your response

Wow, I never heard earlier about pv :O Thanks a lot!

over 1 year ago ·

Such a simple solution for all STDIN based operations ! Thanks :)

over 1 year ago ·