News for hackers. Stuff that matters.
Re:New(ish) command line tools by michaelmior on Wednesday April 13, 2022 @06:47AM (#31013120)
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

Re:New(ish) command line tools by omair_inam on Wednesday April 13, 2022 @08:56AM (#31014054)
From the PV man page (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?

Re:New(ish) command line tools by jwilk on Wednesday April 13, 2022 @10:11AM (#31014859)
PSA: 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.

Re:New(ish) command line tools by encryptluks2 on Wednesday April 13, 2022 @10:48AM (#31015311)
Agreed, actually enjoy using Arch manpages now:

https://man.archlinux.org/man/community/pv/pv.1.en

Re:New(ish) command line tools by michaelmior on Friday April 15, 2022 @10:06PM (#31048521)
Just happened to be the first result that came up, but good to know.