Thread ip mit regexp aus einer Datei filtern: wie filtert man aus einer log datei ips (33 answers)
Opened by misterx at 2005-03-28 16:35

renee
 2005-03-31 15:20
#53023 #53023
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
while (<LOG>) { ==>
Code: (dl )
1
2
3
my $counter_file1 = 0;
while (<LOG>) {
$counter_file1++;


while(<FILE2>){
next unless($_ =~ m/ip/s);
==>
Code: (dl )
1
2
3
4
my $counter_file2 = 0;
while(<FILE2>){
next unless($_ =~ m/ip/s);
$counter_file2++;


Am Ende dann halt noch noch
Code: (dl )
1
2
3
4
print qq~
IPs in $file: $counter_file1
IPs in $file2: $counter_file2
~;
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread ip mit regexp aus einer Datei filtern: wie filtert man aus einer log datei ips