jdk/test/sun/tools/jstat/snap2.awk
author duke
Wed, 05 Jul 2017 17:14:19 +0200
changeset 5570 bfed772dd989
parent 2 90ce3da70b43
child 30376 2ccf2cf7ea48
permissions -rw-r--r--
Merge

#
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
	    }
	}