%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/X11/x11perfcomp/
Upload File :
Create Path :
Current File : //usr/lib/X11/x11perfcomp/perfboth

#!/bin/sh
awk '
/^     1/ && READY == 0 {	printf ("       1   ");
		for (i = 2; i < NF; i++)
			printf ("             %2d             ", i);
		printf ("    Operation\n");
		next;
	}
/^---/	{ 	printf ("------------");
		for (i = 2; i <= NF; i++)
			printf ("   -------------------------");
		printf ("\n");
		READY=1; next;
 	}
READY==1 {
		base=$1;
		printf ("%12.1f", base);
		for (i = 2; i < '$1'; i++) {
			if (base == 0)
				printf ("   %12.1f         ", $i);
			else {
				rate=$i/base;
				printf ("   %12.1f (%10.3f)", $i, rate);
			}
		}
		printf ("   ");
		for (; i <= NF; i++)
		{
			printf ("%s ", $i);
		}
		printf ("\n");
		next;
	   }
	   { print $0; }
'

Zerion Mini Shell 1.0