Re: [CentOS] Text Proccessing script - advice?

2010-12-21 Thread John Lundin
On Tue, Dec 21, 2010 at 02:35:13PM -0500, m.r...@5-cent.us wrote: > John Lundin wrote: > > On Tue, Dec 21, 2010 at 08:30:43PM +0200, Roland RoLaNd wrote: [...] > Well, yes, but he also wanted a count Oh, lord, it's worse than that. I was solving the wrong problem. (And stil

Re: [CentOS] Text Proccessing script - advice?

2010-12-21 Thread John Lundin
On Tue, Dec 21, 2010 at 08:30:43PM +0200, Roland RoLaNd wrote: (chuckle) That's a bit more verbose than necessary. As a one-liner: awk -F, '($4>"09:00:00"){c[$2 "," $3]++};END{for (i in c){print i "," c[i]}}' $filename 01368,2010-12-02,4 01368,2010-12-03,3 (You might check if you want >="09:00

Re: [CentOS] Fail2Ban

2009-03-03 Thread John Lundin
On Sun, Mar 01, 2009 at 05:53:39PM -0800, Linux Advocate wrote: > i have a basic fail2ban with tcp-wrappers & /etc/hosts.deny combo working. i > couldnt get the iptables thing working properly. > > > You don't need shorewall, just the standard CentOS firewall works fine. > > Just be sure to onl