blob: 53ae3a87cc63697b823dc86d4170a9265c393c07 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2BEGIN {
3 totallines=0; matched=0
4 }
5
6/^[0-9]+$/ {
7 matched++;
8 }
9
10 { totallines++; print $0 }
11
12END {
13 if ((totallines > 0) && (matched >= 1)) {
14 exit 0
15 }
16 else {
17 exit 1
18 }
19 }