[CentOS] Sort logfiles on common lines?

Sun Sep 25 19:21:11 UTC 2011
Dotan Cohen <dotancohen at gmail.com>

On Sun, Sep 25, 2011 at 22:10, Frank Cox <theatre at sasktel.net> wrote:
>> Is there a way to get the most common (unique) lines of the file?
>
> If you want what I think you want, a combination of cut and sort will do it.
>

Neither seem to have the "most common line" ability built in. I might
have to resort to either Perl, or just attacking the logfile errors at
random!


> cat /etc/redhat-release
>

Thanks! I is more up to date than I thought!

[root at gastricsleeve html]# cat /etc/redhat-release
CentOS release 5.5 (Final)

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com