bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

efficient version of 'sort | uniq -c | sort -n'?


From: Matthew Woehlke
Subject: efficient version of 'sort | uniq -c | sort -n'?
Date: Mon, 21 May 2007 12:54:15 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0

Is there an efficient implementation of 'sort | uniq -c | sort -n'? I have a 4 GB core file I want to run 'strings' on, and the above is really slow.

What I've done in the past is written my own tool to use a tree to combine the three operations into one. Is there a way already in coreutils to do this? If not, would there be any interest in adding such a method?

--
Matthew
When in doubt, duct tape!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]