[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wc function proposal for an additional switch -? (choose let
From: |
Mike Frysinger |
Subject: |
Re: wc function proposal for an additional switch -? (choose letter ? |
Date: |
Tue, 19 May 2015 07:11:33 -0400 |
On 03 May 2015 23:30, Leslie S Satenstein wrote:
> While there is nothing wrong with wc as is, a suggestion after some use.
>
> With wc -l it emits the line count and the program name(s) as "nnn
> program-name".
> With the additional switch option, it would be convenient to drop the program
> name.
> It would be equivalent to `wc -l programname | cut -d' '`It would be
> equivalent to `wc -c|m|L|w programname | cut -d'' `
>
> In other words, just present the count without the program name.
> Suggest -n or --nonames (for drop the program name)
> wc -l -n prognames
>
> or
>
> wc -l --nonames prognames
wc -l < programname
-mike
signature.asc
Description: Digital signature