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

#
BEGIN	{
	    totallines=0; matched=0
	}

/^[0-9]+ sun.tools.jps.Jps -lm$/	{
	    matched++;
	}

	{ totallines++; print $0 }

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