[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: --progress option to wc(1)
From: |
Pádraig Brady |
Subject: |
Re: Feature request: --progress option to wc(1) |
Date: |
Fri, 15 Nov 2024 16:57:48 +0000 |
User-agent: |
Mozilla Thunderbird Beta |
On 15/11/2024 15:40, Joakim Lindblad wrote:
I'm often using 'wc' for stuff that takes a long time, e.g. 'tar -tf big.tar |
wc -l' to count the
files in an archive.
Here I am lacking some intermediate feedback from the process.
Does a "--progress" version of 'wc' exist? I am envisioning a continuous count
with a simple
line-wise overwrite a'la '\r'.
I fail to find the option, and I don't find the feature request rejected
https://www.gnu.org/software/coreutils/rejected_requests.html#wc
I could potentially volunteer to implement it (but am happy not to).
Yes this does seem like useful functionality,
however it's already implemented in `pv --line-mode`,
so I don't see an advantage to implementing in wc.
For example:
while :; do seq 10; sleep 1; done | pv --line-mode > /dev/null
thanks,
Pádraig