Thursday 26 February 2009

unix, sum kernel counts from JDE.INI

This is from CNC101, just I forget the syntax a lot of the time.

cat JDE.INI |grep maxNumberOfP | awk -F= '{sum+=$2;print $2} END {print sum}'

Gives you the sum of the kernels... Woo hoo. Could also get it to print the maxKernels value and tell you if there is an exception. Too hard for me today.

No comments: