K here's an interesting thing I just found (bags not manually counting words lol)...
if you run either of these you would expect the same result, right?
Code:
wc -w foo.c
cat foo.c | tr ' ' '\n' | wc -l | awk '{print $1}'
but if you run it on a big file it gives you a complete different number... (i.e. I have a project I'm writing, the 1st statement gives me 315 words, the second 602...)
Is there any difference in the statements?