Thread Logdatei filtern mit regulären Ausdrücken
(16 answers)
Opened by cohama at 2012-02-28 11:24
Also sowas?
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 my $number; while ( my $line = <$filehandle> ) { if ( $line =~ m{START Number=(\d+)} .. $line =~ m{ENDE} } { $number = $1 if $1; if ($number == 3151) ... else ... } } 1 + 1 = 10
|