6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
DUT No
Status: Passed
Measurement:17
UND SO WEITER!!!
End Sequence: CheckIdleCurrent
DUT No
Status: Passed
Measurement:9
Limits
Low:1
High:64
Comparison Type:GELE (>= <=)
CheckIdleCurrent
Status: Passed
Module Time: 0.7582257
BeginSequence: CheckIdleCurrent
Test Ruhestrom
Status: Passed
Measurement:0.0274
Units:mA
Limits
Low:0.0001
High:0.5000
Comparison Type:GELE (>= <=)
End Sequence: CheckIdleCurrent
DUT No
Status: Passed
Measurement:17
Limits
Low:1
High:64
Comparison Type:GELE (>= <=)
CheckIdleCurrent
Status: Passed
Module Time: 0.761192
BeginSequence: CheckIdleCurrent
Test Ruhestrom
Status: Passed
Measurement:0.0277
Units:mA
Limits
Low:0.0001
High:0.5000
Comparison Type:GELE (>= <=)
End Sequence: CheckIdleCurrent
DUT No
Status: Passed
Measurement:25
Limits
Low:1
High:64
Comparison Type:GELE (>= <=)
CheckIdleCurrent
Status: Passed
Module Time: 5.4065749
BeginSequence: CheckIdleCurrent
Test Ruhestrom
Status: Passed
Measurement:0.0281
Units:mA
Limits
Low:0.0001
High:0.5000
Comparison Type:GELE (>= <=)
End Sequence: CheckIdleCurrent
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/usr/bin/perl use strict; use warnings; my $file = 'dutno.txt'; my @entries; { my $measure; local $/ = "\nDUT No\n"; open my $fh, '<', $file or die $!; while( my $entry = <$fh> ){ chomp $entry; my @mms = $entry =~ /Measurement:\s*([\d.]+)/; $measure = $mms[0] unless defined $measure; if( grep{ $_ == $measure }@mms ){ $entry = "DUT No\n". $entry unless $entry =~ /^DUT No/; push @entries, $entry; } } } print $_,"\n" for @entries;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
opendir(DIR,"test2");
while($datei = readdir(DIR))
{
open($IN,'<',"test2/$datei");
$file = $IN;
@entries;
{
my $measure;
local $/ = "\nDUT No\n";
open my $fh, '<', $file or die $!;
while( my $entry = <$fh> )
{
chomp $entry;
@mms = $entry =~ /Measurement:\s*([\d.]+)/;
$measure = $mms[0] unless defined $measure;
if(grep{ $_ == $measure }@mms)
{
$entry = "DUT No\n". $entry unless $entry =~ /^DUT No/;
push @entries, $entry;
}
}
}
print $_,"\n" for @entries;
close OUTPUT;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
my $dir = 'test2';
opendir(DIR,$dir) or die $!;
while($datei = readdir(DIR)){
my $path = $dir . '/' . $datei;
next unless -f $path;
my @entries;
{
my $measure;
local $/ = "\nDUT No\n";
open my $fh, '<', $path or die $!;
while( my $entry = <$fh> ){
chomp $entry;
@mms = $entry =~ /Measurement:\s*([\d.]+)/;
$measure = $mms[0] unless defined $measure;
if(grep{ $_ == $measure }@mms){
$entry = "DUT No\n". $entry unless $entry =~ /^DUT No/;
push @entries, $entry;
}
}
}
print $_,"\n" for @entries;
close OUTPUT;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
my $dir = 'test2';
opendir(DIR,$dir) or die $!;
while($datei = readdir(DIR))
{
$path = $dir . '/' . $datei;
#print "\n$path\n";
next unless -f $path;
@entries;
{
$measure;
local $/ = "\nDUT No\n";
open $fh, '<', $path or die $!;
while($entry = <$fh> )
{
chomp $entry;
@mms = $entry =~ /Measurement:\s*([\d.]+)/;
$measure = $mms[0] unless defined $measure;
if(grep{ $_ == $measure }@mms)
{
$entry = "DUT No\n". $entry unless $entry =~ /^DUT No/;
push @entries, $entry;
}
}
}
open OUTPUT, '>',$path;
print OUTPUT $_,"\n" for @entries;
#print $datei;
close OUTPUT;
}
6 Einträge, 1 Seite |