[ale] Is awk the right tool for this?
Dow Hurst
dhurst at kennesaw.edu
Tue May 7 13:43:12 EDT 2002
Hey give the guy a break! It's Fletch okay? Read his signature. That
says it all!
Dow
Geoffrey wrote:
>
> James P. Kinney III wrote:
> > I have no doubt as to _why_ so many people gag when they think of UNIX.
>
> But, the true question is, does he really right perl like that, or did
> he intentionally obsfucate it to impress us?
>
> >
> > On Tue, 2002-05-07 at 11:52, Joseph A Knapka wrote:
> >
> >>Fletch wrote:
> >>
> >>>perl -lne \
> >>> '/SRC=(\S+)/&&$a{$1}++;END{print for sort{$a{$b}<=>$a{$a}}keys%a}' \
> >>> /var/log/kernel/info
> >>>
> >>> In numeric order by IP address:
> >>>
> >>>perl -MSocket=inet_aton -lne \
> >>> '/SRC=(\S+)/&&$a{$1}++;END{print for map{$_->[0]}sort{$a->[1]<=>$b->[1]}map{[$_,inet_aton($_)]}keys%a}' \
> >>> /var/log/kernel/info
> >>>
> >>Wow. That's really nauseating.
> >>
> >>:-)
> >>
> >>Cheers,
> >>
> >>-- Joe
> >> Any OS distinguishable from Windows is not sufficiently broken.
> >>
> >>---
> >>This message has been sent through the ALE general discussion list.
> >>See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> >>sent to listmaster at ale dot org.
> >>
>
> --
> Until later: Geoffrey esoteric at 3times25.net
>
> I didn't have to buy my radio from a specific company to listen
> to FM, why doesn't that apply to the Internet (anymore...)?
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
--
__________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd.
Chemistry Department SC428 Email:dhurst at kennesaw.edu
Kennesaw State University Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*********************************
*Computational Chemistry is fun!*
*********************************
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list