jdk/test/sun/tools/jstatd/jpsOutput1.awk
author lana
Tue, 20 Aug 2013 17:46:21 -0700
changeset 19513 f90fd926e074
parent 13671 504c7dd77cf0
permissions -rw-r--r--
Merge

#
BEGIN	{
	    totallines=0; matched=0
	}

/^[0-9]+ [a-z|A-Z][a-z|A-Z|0-9|\$|\.]*$/	{
	    matched++;
	}

/^[0-9]+ -- .*$/	{
	    matched++;
	}

/^[0-9]+ $/	{
	    matched++;
	}

	{ totallines++; print $0 }

END	{
	    if ((totallines > 0) && (matched == totallines)) {
	        exit 0
	    }
	    else {
	        exit 1
	    }
	}