4 Einträge, 1 Seite |
1
2
3
4
1.0 2 1.27 16.014 37 12.1 4.0
2.0 12.8 1.27 16.014 37 13.4 1.1
3.0 4.0 1.29 7.558 54 15.1 2.1
4.0 2.2 1.41 7.294 31 12.1 3.3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use strict; use warnings; open my $out1, '<', 'out1.txt' or die $!; open my $out, '>', 'out.txt' or die $!; while(<$out1>) { if($out1 =~ \d{1,3}\.\d* \d{1,3}\.\d* \d{1,3}\.\d* \d{1,3}\.\d* \d{1,3}\.\d* /( \d{1,3}\.\d*)/ \d{1,3}\.\d* ) { print "$1\n"; } else{ print "keine Werte\n"; } } close($out1); close($out);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use strict; use warnings; open my $in, '<', 'out1.txt' or die $!; open my $out, '>', 'out.txt' or die $!; while(my $line=<$in>) { my @elemts=split(/\s+/,$line); if(@lements > 5) { print $elemts[5]."\n"; } else { print "keine Werte\n"; } } close($in); close($out);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use strict; use warnings; open my $in, '<', 'out1.txt' or die $!; open my $out, '>', 'out.txt' or die $!; while(my $line=<$in>) { if($line=~/\A(?:[\d\.]+\s+){5}([\d\.]+)/) { print "$1\n"; } else { print "keine Werte\n"; } } close($in); close($out);
4 Einträge, 1 Seite |