author | duke |
Wed, 05 Jul 2017 17:14:19 +0200 | |
changeset 5570 | bfed772dd989 |
parent 2 | 90ce3da70b43 |
child 12200 | d935c2f4aeae |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
BEGIN { |
|
3 |
totallines=0; matched=0 |
|
4 |
} |
|
5 |
||
6 |
/^[0-9]+ [a-z|A-Z][a-z|A-Z|0-9|\$|\.]*$/ { |
|
7 |
matched++; |
|
8 |
} |
|
9 |
||
10 |
/^[0-9]+ -- process information unavailable$/ { |
|
11 |
matched++; |
|
12 |
} |
|
13 |
||
14 |
{ totallines++; print $0 } |
|
15 |
||
16 |
END { |
|
17 |
if ((totallines > 0) && (matched == totallines)) { |
|
18 |
exit 0 |
|
19 |
} |
|
20 |
else { |
|
21 |
exit 1 |
|
22 |
} |
|
23 |
} |