Thread Lesen log file
(6 answers)
Opened by lddzjwwy at 2013-05-27 10:26
Ah, also kein start + ende command.
sowas? Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 my %result = (); my $command = ''; for my $line (@d) { if ($line =~ /^<(.+)/) { $command = $1; } $result{$command} .= $line; } 1 + 1 = 10
|