At 2004-11-07T21:53:57+1300, Timothy Pick wrote:
> grep a txt.txt -o |wc

> Fine someone tell me this don't work either

It works, but you need to use the line count from wc(1), not the
character count--the character count will include newlines, so the
figure is wrong.

That solution is even less efficient than using sed(1).

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to