
On Thu, 18 Dec 2003, GDHough wrote:
1 - How I can search for subnet matches in /var/log/messages, like I can in Ethereal.
Are you aware of the ability to do regex expressions in grep? This should do exactly what you want.
2 - How I can extract $omefield (columns?) and print $ame to $omefile after doin $ummath on $omefield.
If I was sticking to shell I'd use "cut" here.
I've been looking at man pages and am thinking awk sort uniq ... am I looking in the right direction? Are there any cautionary comments with shell tools as powerful as awk? What are '.po' files?
Shell tools tend to have a narrower focus than awk but each is very powerful in what it does. Rob -- Robert Brockway B.Sc. email: robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy at public.gmane.org, zzbrock at uqconnect.net Linux counter project ID #16440 (http://counter.li.org) "The earth is but one country and mankind its citizens" -Baha'u'llah -- The Toronto Linux Users Group. Meetings: http://tlug.ss.org TLUG requests: Linux topics, No HTML, wrap text below 80 columns How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
participants (1)
-
robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy@public.gmane.org