Thread Matching von bis in einer Datei
(24 answers)
Opened by Rambo at 2009-05-04 14:54
ungetestet:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 use Tie::File; my $file = 'test.txt'; tie my @lines, 'Tie::File', $file or die $!; for my $i ( 0 .. $#lines ) { if( $lines[$i] =~ /Suchbegriff/ ) { print $lines[ $i-23 ]; } } untie @lines; 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 Matching von bis in einer Datei |