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 *".


Cheers,
Carl

Reply via email to