On Wed, May 25, 2005 at 02:02:14PM -0700, Carl Lowenstein wrote: ... > "report unique IP addresses and > how many of each". > > Here is a bit of script that I got from comp.lang.awk, I think. It > pulls IP adresses out of fairly arbitrary messed-up text streams. The > technique is to use tr(1) to get rid of everything that is not a digit > or a dot by mapping them to newline (\012) and squeezing out duplicate > newlines. ... Changing everything undesirable to a newline is a very neat trick and should also work for other purposes and in other languages. I doubt that I'm the only one who has never thought of changing anything except other separators into newlines. Thanks.
Stewart Strait -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
