5 ms·
My favourite non-standard tool is pv[0]. In it's simplest use case, pv is a replacement for cat that also outputs a progress bar to stderr. You can use it to ad
by michaelmior 5y ago
My favourite non-standard tool is pv[0]. In it's simplest use case, pv is a replacement for cat that also outputs a progress bar to stderr. You can use it to add a progress bar (or multiple) to just about any pipeline. I love it because I know if the one-liner I wrote is about to finish in a couple minutes or if it will be a while and I should either write something more efficient, or do something else while I'm waiting.
[0] https://linux.die.net/man/1/pv https://linux.die.net/man/1/pv
- omair_inam 5y agoFrom the PV man page (https://linux.die.net/man/1/pv https://linux.die.net/man/1/pv) > A more complicated example using numeric output to feed into the dialog(1) > program for a full-screen progress display: ... > Frequent use of this third form is not recommended as it may cause the programmer to overheat. ^- is that a wisecrack hidden in an otherwise serious man page?
- jwilk 5y agoPSA: don't use linux.die.net. It's horribly outdated. This sentence was removed from the man page in pv 1.4.0, released in December 2012.
- michaelmior 5y agoJust happened to be the first result that came up, but good to know.
- encryptluks2 5y agoAgreed, actually enjoy using Arch manpages now: https://man.archlinux.org/man/community/pv/pv.1.en https://man.archlinux.org/man/community/pv/pv.1.en