changeset 2 | 90ce3da70b43 |
child 30376 | 2ccf2cf7ea48 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jdk/test/sun/tools/jstat/snap2.awk Sat Dec 01 00:00:00 2007 +0000 @@ -0,0 +1,15 @@ +# +BEGIN { totallines=0; count=0; } + + { totallines++; print $0 } + +$0 !~ /[java|sun|com\.sun]\..+=.*$/ { count++ } + +END { + if ((count == 0) && (totallines != 0)) { + exit 0 + } + else { + exit 1 + } + }