# /usr/scripts/report2_more.awk # # AWK script: report2_more.awk # # Author: Kevin FitzGerrell # # Called by shift2.script, this script is used to parse data out of the file # report2_eod.tmp. # # last modified 5/5/99 # { total[NR] = $1 } END { printf("\n\n\n") printf("%-29s%6.0f\t%-29s%6.0f\n", "Mill downtime, day: ", total[1], "SAG downtime, day:", total[13]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Mill downtime, night: ", total[2], "SAG downtime, night:", total[14]) printf("%-29s%6.0f\t%-29s%6.0f\n\n", "Mill downtime, total: ", total[3], "SAG downtime, total:", total[15]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Mill throughput, day: ", total[4], "BM 1 downtime, day:", total[16]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Mill throughput, night: ", total[5], "BM 1 downtime, night:", total[17]) printf("%-29s%6.0f\t%-29s%6.0f\n\n", "Mill throughput, total: ", total[6], "BM 1 downtime, total:", total[18]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Crusher downtime, day: ", total[7], "BM 2 downtime, day:", total[19]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Crusher downtime, night: ", total[8], "BM 2 downtime, night:", total[20]) printf("%-29s%6.0f\t%-29s%6.0f\n\n", "Crusher downtime, total: ", total[9], "BM 2 downtime, total:", total[21]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Crusher throughput, day: ", total[10], "Gravity downtime, day:", total[22]) printf("%-29s%6.0f\t%-29s%6.0f\n", "Crusher throughput, night: ", total[11], "Gravity downtime, night:", total[23]) printf("%-29s%6.0f\t%-29s%6.0f\n\n", "Crusher throughput, total: ", total[12], "Gravity downtime, total:", total[24]) }