[Gllug] Stories of using filters

Mick Farmer mick at dcs.bbk.ac.uk
Thu Mar 17 11:00:29 UTC 2005


Dear Steve,

One pipeline I've always found useful is analysis of log
files.  You can ring the changes on the one below.  I've
wrapped the lines.

grep PROTO=TCP /var/log/messages* 
     | sed 's/.*SRC=//' 
     | sed 's/ .*//' 
     | sort -n -t. 
     | uniq -c 
     | sort -n

Regards,

Mick               /"\                      
                   \ /                      
Linux Registered    X  ASCII Ribbon Campaign
User #287765       / \ Against HTML Mail
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list