[EMAIL PROTECTED] (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, [EMAIL PROTECTED]
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."


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to