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