[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH Coreutils 5.2.1] wc : add -t slot to display "true" lines
From: |
Andreas Schwab |
Subject: |
Re: [PATCH Coreutils 5.2.1] wc : add -t slot to display "true" lines |
Date: |
Tue, 29 Jun 2004 13:30:58 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
address@hidden (Bob Proulx) writes:
> FabF wrote:
>> (Please cc me)
>> Here's a patch to add "count only used lines" in wc.
>> This can be useful if you want to know how many lines of real text are
>> featuring.
>
> This looks remarkably like the standard command:
>
> grep -c . filename
And
grep -c '[^[:space:]]' filename
if you want to ignore blank lines, too.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."