4 ms·
Not explaining, trying to tell that you are comparing apples to oranges and making a conclusion based on that. Also, you don't need to spawn a subshell nor fee
by tuldia 7y ago
Not explaining, trying to tell that you are comparing apples to oranges and making a conclusion based on that.
Also, you don't need to spawn a subshell nor feed sort via stdin in the first example :)
- cperciva 7y agoHe's comparing apples to oranges and reaching the conclusion that... yes, apples and oranges are different things. He's quite aware of this, and even points out the tradeoff -- `sort | uniq -c` still works if your dataset doesn't fit into RAM.
- tuldia 7y agoCounting "words" vs sorting+counting "lines" are a complete different thing. Heck, forget about RAM, the output of both programs don't even match. That awk is pretty efficient and fast is no surprise ;)