AGaldes at elders.com.au
Sat Dec 7 09:17:31 CST 2002
This is the result and it works fine.
cat /my/log/file.log | sort | cut -d'.' -f1 | uniq -c
Uses the first "." in any line as the delimiter. It also gives a count of
occurrences of each item.
> That is a newbie type question; use perl and regex:
> perldoc perlre
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.openprojects.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request at linuxsa.org.au with "unsubscribe" as the subject
More information about the linuxsa