Maximilian Haeussler wrote:
Let's say I only want the 50 most common lines of a file:
cat textfile | sort | uniq -c | sort -n | tail -n 50 | tr -s ' ' | cut -f2

Have I ever mentioned that 'sort | uniq -c' really ought to be folded into sort proper? (Not to get rid of 'uniq', but 'sort | uniq -c | sort -n' is far less efficient than a good tree algorithm... which is exactly why I wrote such a critter. When analyzing the output of 'strings' on a multi-GB core file, it makes a WORLD of difference...)

--
Matthew
Somewhere, there is a .sig so funny that reading it will cause an aneurysm. I haven't found it yet, but I think I met a few of the runners-up.



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to