On Wed, 12 Jan 2005 07:41:32 +1300
Carl Cerecke <[EMAIL PROTECTED]> wrote:

> Steve Holdoway wrote:
> > John Rye wrote:
> 
> >> Could someone show me how to count the total number of words in a 
> >> group of
> >> files which are located in the same directory?
> 
> > cat * | wc -w
> 
> better:
> 
> wc -w *
> 
> 
> Interestingly, the directory I tried it on here (full of Java code) 
> gives 173918 for "cat * | wc -w" and 173920 for "wc -w *".

I get the same kind of variance too - but for my purposes the difference
is of no real concern.

Thanks Carl

Attachment: pgp6BlgTbes9G.pgp
Description: PGP signature

Reply via email to