[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wc -m reports one too many?
From: |
Andreas Schwab |
Subject: |
Re: wc -m reports one too many? |
Date: |
Sat, 08 May 2004 19:14:32 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
Tobias Reif <address@hidden> writes:
> echo f | wc -m
>
> should yield 1.
No, you forgot to count the newline.
$ printf f | wc -m
1
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."