Re: Sort logfiles on common lines?

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



On Sun, Sep 25, 2011 at 22:10, Frank Cox <theatre@xxxxxxxxxxx> 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@gastricsleeve html]# cat /etc/redhat-release
CentOS release 5.5 (Final)

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux