jdk/test/sun/tools/jps/jps-l_Output2.awk
author duke
Wed, 05 Jul 2017 18:59:09 +0200 (2017-07-05)
changeset 18016 5dbc2241ed9c
parent 2 90ce3da70b43
permissions -rw-r--r--
Added tag jdk8-b94 for changeset 0d804e3b955d
#
BEGIN	{
	    totallines=0; matched=0
	}

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

	{ totallines++; print $0 }

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