OK, got my license. Thanks!
I hadn't even looked at the command stuff that closely - reminds me a little of TextPad on Windows. This opens up a whole new world of usefulness. I changed your command to:
wc | /usr/bin/awk '{print "lines:", $1, " words:", $2, " chars:", $3}'
That seems to explain the numbers a little better.
Stuart
On 16 Nov 2004, at 16:11, Stuart Wheeler wrote:
Does that work with double-byte or "special" characters ? Last time I tried the character count wasn't accurate for UTF-8 encoded characters or punctuation. Thanks.
On Tue, 16 Nov 2004 16:31:39 +0000, Stuart Wheeler textmatelist.to.wheeles@spamgourmet.com wrote:
On 17.11.2004, at 23:47, Allan Odgaard wrote:
Ah, that's true. You could pipe the text through e.g.: “iconv -f utf-8 -t iso-8859-1//TRANSLIT” then the character count should be correct.
Works fine with that command. Just remember that the character count includes the spaces, which might or might not be what you want.
Cheers, Jarkko
-- Jarkko Laine http://jlaine.net