GNU bug report logs - #46346
wc --human-readable or --verbose

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; dated Sat, 6 Feb 2021 13:56:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Feb 2021 16:46:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 06 11:46:34 2021
Received: from localhost ([127.0.0.1]:46364 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l8QjC-0001Qa-A3
	for submit <at> debbugs.gnu.org; Sat, 06 Feb 2021 11:46:34 -0500
Received: from lists.gnu.org ([209.51.188.17]:40834)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <celvidge001@HIDDEN>) id 1l8QjA-0001QT-KJ
 for submit <at> debbugs.gnu.org; Sat, 06 Feb 2021 11:46:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37952)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <celvidge001@HIDDEN>)
 id 1l8QjA-0004dr-CM
 for bug-coreutils@HIDDEN; Sat, 06 Feb 2021 11:46:32 -0500
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:44494)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <celvidge001@HIDDEN>)
 id 1l8Qj7-0006p7-UI
 for bug-coreutils@HIDDEN; Sat, 06 Feb 2021 11:46:32 -0500
Received: by mail-wr1-x42e.google.com with SMTP id d16so11424934wro.11
 for <bug-coreutils@HIDDEN>; Sat, 06 Feb 2021 08:46:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=kM4deJxZ7CO3zXJBQ7n5l6n1+TH7jae++Mj6pSs/4hg=;
 b=L/ienW8DP8dNakA3RRI/DRt9kUqHwD0zF5fpZve7/hr/2jmw242usIJmL1PFyKk/tg
 IQhID3uQfSH0JF498niQfptJ3hNv2+2FVUu8pCuKVBz4yBWpto5cxTd+wfab3D9UnBL2
 Dsx/oamijLikyCMWt0iGwCAk45EX1vLecbXrL1A2aRUQrh8FHDtvPsVqR79S3FUTF9tZ
 SS7zX5lvBLX2DwuqfvEo8Gxw/c/eoMpcvfwzNh0Pkzxsmaki/zkLcI+vAR0dovGu3Caw
 +VDZ3JRWUy28rOIpYJySAF3zWUN64tTOgH+1DLTaDLigNwkUuVu+1iWoVmTB6XEbhn9S
 lwTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=kM4deJxZ7CO3zXJBQ7n5l6n1+TH7jae++Mj6pSs/4hg=;
 b=UgNXDODMERHzDhc7VstS+CTQLVH9CYVr+SNvNdcrupIy+zFNL8CwOhBsQQgfzIvmPU
 4VS/DxRgquyOPTkt0ff/dWzp+caB3GMl6DZwvxCJWxMyG9oEf6zXlsPvZhu+LvMhZM1E
 6/1fch/vH7qC6RDd0xtlT3LQicElX4tB4w9n6sWMAHikYPwEPBnmHSNw+2jovFC5BsIZ
 ISkOjB1dMaEJWllzNbBya2RlA8eDJgIOLJ46aRavTAJUGTU11/UOvIRSKduxXFUsPCe3
 PEVVi5StUDeJdsbFvk9PnwYUl0CTjFrwI9p8mU/kYUJHkUyetW1g/Y8m/ydbH2tjz3bh
 P8Zw==
X-Gm-Message-State: AOAM533itfRpzO/phGzaOJG+T70MlzwFFiqR2oxQ/FxASV0fnKAvCI+D
 0a5mzws7FXWZ7GyKtoxV82VBdK3fKPAmhg==
X-Google-Smtp-Source: ABdhPJzhnCSg9t5s5nQRxEsc7tc5gAL/BARysQroLVFqx3Q8yCWwTeh0JrVjiMQkfbqCE9zyy4J0oQ==
X-Received: by 2002:adf:dd45:: with SMTP id u5mr10817678wrm.392.1612629986659; 
 Sat, 06 Feb 2021 08:46:26 -0800 (PST)
Received: from [192.168.23.100] (92.40.201.41.threembb.co.uk. [92.40.201.41])
 by smtp.gmail.com with ESMTPSA id
 x18sm428046wmi.8.2021.02.06.08.46.25 for <bug-coreutils@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 06 Feb 2021 08:46:25 -0800 (PST)
Subject: Re: bug#46346: wc --human-readable or --verbose
To: bug-coreutils@HIDDEN
References: <87zh0hb9kf.8.fsf@HIDDEN>
From: Chris Elvidge <celvidge001@HIDDEN>
Message-ID: <788033de-85fd-815e-0996-b164eb9515fb@HIDDEN>
Date: Sat, 6 Feb 2021 16:46:22 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1 Lightning/5.4
MIME-Version: 1.0
In-Reply-To: <87zh0hb9kf.8.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::42e;
 envelope-from=celvidge001@HIDDEN; helo=mail-wr1-x42e.google.com
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.105,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.2 (--)



On 06/02/2021 01:38 pm, 積丹尼 Dan Jacobson wrote:
> wc needs a --verbose option. Else one is forced to do:
> 
> $ file=e.html; echo $file:; for i in bytes chars lines words; do echo -en $i:\\t; wc --$i < $file; done
> e.html:
> bytes:  31655
> chars:  29141
> lines:  643
> words:  1275
> 
> I mean sometimes we want to send the output to a real person, and
> currently all wc makes is:
> 
> $ wc e.html
>    643  1275 31655 e.html
> $ file=e.html; for i in bytes chars lines words; do wc --$i < $file; done
> 31655
> 29141
> 643
> 1275
> 
> So there needs to be a --verbose or --human-readable like du(1)... oops
> I don't mean saying 234M... yet.
> 
> 
> 
> 

Or:
wch () { [[ "$1" && -f "$1" ]] || return 1; awk '{print 
"file:\t"$5"\nlines:\t"$1"\nwords:\t"$2"\nchars:\t"$3"\nbytes:\t"$4}' < 
<(wc -lwcm $1); }



-- 

Chris Elvidge







Information forwarded to bug-coreutils@HIDDEN:
bug#46346; Package coreutils. Full text available.

Message received at 46346 <at> debbugs.gnu.org:


Received: (at 46346) by debbugs.gnu.org; 6 Feb 2021 15:04:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 06 10:04:02 2021
Received: from localhost ([127.0.0.1]:46281 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l8P7x-0007Qh-Gl
	for submit <at> debbugs.gnu.org; Sat, 06 Feb 2021 10:04:01 -0500
Received: from mail-wm1-f54.google.com ([209.85.128.54]:51121)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1l8P7u-0007QO-R3
 for 46346 <at> debbugs.gnu.org; Sat, 06 Feb 2021 10:03:59 -0500
Received: by mail-wm1-f54.google.com with SMTP id 190so8456375wmz.0
 for <46346 <at> debbugs.gnu.org>; Sat, 06 Feb 2021 07:03:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=ghxaFIo9jdhgJgy2HxLB8IEEDIYpK1nLy+THnfiEFmM=;
 b=uqvomjJCU0z+ln3wNUrCEWHpnjy4ZFKY94ix3fASxdtq6edqUz5JPLBBaBjBnKFf2g
 NRDJ3+nuKR3xIlEAWIvboGeJ73aP4plXI06INdL5Mc8qQJLcYKSjoNgDy7XmiQovBIQA
 N93R6DpBgflhMf9pyj8OVKjx8p3Sgzlw4jjNTTDpMJ+8yTUjl+Qrq/jWxoVR0AxxA2n6
 bw9H9frfLoQioO9Sf14Z4fmnrOTAiNn/CXObLK/56qRcagbhqbIcs+UVnd28lJGtE4O+
 n3CeVcliAWPfqcomWzdzL11Cr6HKMUBwmwvjYestxOmXZ3KOIiXLqWxKAHL6adhX+Z+j
 lwyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=ghxaFIo9jdhgJgy2HxLB8IEEDIYpK1nLy+THnfiEFmM=;
 b=VpU3XjFio/CD4LdzI8vZq1Za6cNQpCmu6zYB7BRNm5nMCx7TLwJut4NToeWz0hfwGp
 I/8s2GIEbkjgeG8oApFxdH00gumlXz/eg+kTSrTNQZJqPPAaVs1gUmiwK8VFRDwYWdvF
 5ZbUPLsYo9WIoIaSEncsAG94uwkXUXVLM2PYmwVyCru5dIQ/HtQ5i3YzP+yXfTt9LEE2
 LHiX6jhb+YKJ8j23kG1gGZk7sA+gCr7KbftV3wym5K7oDiDJaZB3BwyiVdeBN8MA4WP2
 GPTwjgL+DdMMbG53/CXo1rhJ8bTSNSzsq040gdQ6qmpNfZpX6RIYlkDMASSE0HYs8WjP
 rqqQ==
X-Gm-Message-State: AOAM533dT47g0I9M4l7x2gVMUkO5idALrNxqc8etqxsQ3o/y/2nDhgDq
 UGyW2fb89kaudcPYHF/J0BdLWBsxyMvHjA==
X-Google-Smtp-Source: ABdhPJxI5TV7zDVNV66NSrCnbDTpFKim7plu2Dysg0qfr88cet+84bBzrQsolGX6hCFUQb29VMdcvA==
X-Received: by 2002:a05:600c:4656:: with SMTP id
 n22mr5191871wmo.130.1612623832782; 
 Sat, 06 Feb 2021 07:03:52 -0800 (PST)
Received: from localhost.localdomain
 (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.42.14.227])
 by smtp.googlemail.com with UTF8SMTPSA id
 r13sm12721967wmh.9.2021.02.06.07.03.51
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 06 Feb 2021 07:03:52 -0800 (PST)
Subject: Re: bug#46346: wc --human-readable or --verbose
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 46346 <at> debbugs.gnu.org
References: <87zh0hb9kf.8.fsf@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <66bfd258-0c11-05aa-53ef-49fe7ad02d0e@HIDDEN>
Date: Sat, 6 Feb 2021 15:03:51 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101
 Thunderbird/84.0
MIME-Version: 1.0
In-Reply-To: <87zh0hb9kf.8.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 46346
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 06/02/2021 13:38, 積丹尼 Dan Jacobson wrote:
> wc needs a --verbose option. Else one is forced to do:
> 
> $ file=e.html; echo $file:; for i in bytes chars lines words; do echo -en $i:\\t; wc --$i < $file; done
> e.html:
> bytes:  31655
> chars:  29141
> lines:  643
> words:  1275
> 
> I mean sometimes we want to send the output to a real person, and
> currently all wc makes is:
> 
> $ wc e.html
>    643  1275 31655 e.html
> $ file=e.html; for i in bytes chars lines words; do wc --$i < $file; done
> 31655
> 29141
> 643
> 1275
> 
> So there needs to be a --verbose or --human-readable like du(1)... oops
> I don't mean saying 234M... yet.

For standard text files, lines < words < bytes
so the counts would be apparent from their relative sizes.
But I agree it's not generally the case,
and also ambiguous as to whether it's chars or bytes by default (it's bytes),
So quite user unfriendly by default.

I see FreeBSD wc supports --libxo,
which supports json output which is a bit more general
and close to what you want:
https://juniper.github.io/libxo/libxo-manual.html

So for this example it would be:

   $ wc --libxo json,pretty,warn e.html
   {
     "wc": {
       "file": [
         {
           "lines": 643,
           "words": 1275,
           "bytes": 31655,
           "filename": "e.html"
         }
       ]
     }
   }

BTW I see that for FreeBSD's wc character and byte counts are mutually exclusive,
so they're always described as "characters" in the output, which is confusing I think.

cheers,
Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#46346; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Feb 2021 13:55:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 06 08:55:07 2021
Received: from localhost ([127.0.0.1]:45465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l8O3G-0005aJ-Tp
	for submit <at> debbugs.gnu.org; Sat, 06 Feb 2021 08:55:07 -0500
Received: from lists.gnu.org ([209.51.188.17]:35270)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1l8O31-0005Zg-Qc
 for submit <at> debbugs.gnu.org; Sat, 06 Feb 2021 08:55:05 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38692)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1l8O31-0001aN-FY
 for bug-coreutils@HIDDEN; Sat, 06 Feb 2021 08:54:51 -0500
Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:50421)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1l8O2z-0003vy-Hw
 for bug-coreutils@HIDDEN; Sat, 06 Feb 2021 08:54:51 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 33CA77E2AC4
 for <bug-coreutils@HIDDEN>; Sat,  6 Feb 2021 13:54:46 +0000 (UTC)
Received: from pdx1-sub0-mail-a49.g.dreamhost.com
 (100-96-15-8.trex.outbound.svc.cluster.local [100.96.15.8])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id B9B617E2FA5
 for <bug-coreutils@HIDDEN>; Sat,  6 Feb 2021 13:54:45 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a49.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384)
 by 100.96.15.8 (trex/6.0.2); Sat, 06 Feb 2021 13:54:46 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Invention-Cooing: 63eef98972c57c1c_1612619685959_73234625
X-MC-Loop-Signature: 1612619685959:4090456241
X-MC-Ingress-Time: 1612619685959
Received: from pdx1-sub0-mail-a49.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTP id 71DCF7FB7D
 for <bug-coreutils@HIDDEN>; Sat,  6 Feb 2021 05:54:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 jidanni.org; bh=RAtRAtzr6bf2teZlJrbKKBduY1c=; b=mZfDDHmjYFr2yI9v
 +mnKhzFWdvGS7YGa5RzlDObZ3hIO0C2yIDo3Qotxl87kJaLednV05V2Hp9MFpa5j
 iLvvG8V5iBT7HtogtN4XkQTFcNF+KGo9DZOb7MVLAqdJyPWUvH9u77ZOxhO2vl7J
 Gf42a3nj9Pu9HPBjYVlUpCggdPg=
Received: from jidanni.org (36-234-68-203.dynamic-ip.hinet.net [36.234.68.203])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTPSA id 02C377F6FE
 for <bug-coreutils@HIDDEN>; Sat,  6 Feb 2021 05:54:44 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a49
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: wc --human-readable or --verbose
Date: Sat, 06 Feb 2021 21:38:24 +0800
Message-ID: <87zh0hb9kf.8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=23.83.212.4; envelope-from=jidanni@HIDDEN;
 helo=antelope.elm.relay.mailchannels.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

wc needs a --verbose option. Else one is forced to do:

$ file=e.html; echo $file:; for i in bytes chars lines words; do echo -en $i:\\t; wc --$i < $file; done
e.html:
bytes:  31655
chars:  29141
lines:  643
words:  1275

I mean sometimes we want to send the output to a real person, and
currently all wc makes is:

$ wc e.html
  643  1275 31655 e.html
$ file=e.html; for i in bytes chars lines words; do wc --$i < $file; done
31655
29141
643
1275

So there needs to be a --verbose or --human-readable like du(1)... oops
I don't mean saying 234M... yet.




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#46346; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 21 Feb 2022 10:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.