Help with TPCC and MySQL

Look at mixa’s post, there is tpcc-output-analyze written in code.
You have to open text editor (eg. gedit) and copy paste mixa’s code.
Copy and paste this code:

TIMESLOT=1

if [ -n “$2” ]
then
TIMESLOT=$2
echo “Defined $2”
fi

cat $1 | grep -v HY000 | grep -v payment | grep -v neword | awk -v timeslot=$TIMESLOT ’ BEGIN { FS=“[,():]”; s=0; cntr=0; aggr=0 } /MEASURING START/ { s=1} /STOPPING THREADS/ {s=0} /0/ { if (s==1) { cntr++; aggr+=$2; } if ( cntr==timeslot ) { printf (“%d %3d\n”,$1,(aggr/‘$TIMESLOT’)) ; cntr=0; aggr=0 } } ’

in tex editor and name it tpcc-output-analyze.sh.
Read once again mixa’s second post. There is code for tpcc-graph-build.sh.