IPFW Log question
    Matthew Seaman 
    m.seaman at infracaninophile.co.uk
       
    Fri Jun 20 09:01:53 PDT 2003
    
    
  
On Fri, Jun 20, 2003 at 09:49:28AM -0600, Warren Block wrote:
> On Fri, 20 Jun 2003, Matthew Seaman wrote:
 
> Ah, I didn't see that you were expanding those lines.  You're right
> about the useless backreference.  And then right after posting, I
> realized that it could be even smaller and--arguably--clearer:
> 
> #!/usr/bin/perl -w
> 
> while (<>) {
> 	print unless /last message repeated \d+ times/;
> }
Even smaller:
    #!/usr/bin/perl -wn
    print unless /last message repeated \d+ times/;
But this perl is all just a resource consuming way of saying:
    % grep -vE 'last message repeated [0-9]+ times'
	Cheers,
	Matthew
-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030620/31573d02/attachment.bin
    
    
More information about the freebsd-questions
mailing list