#!/bin/sh NO_ARGS=0 OPTERROR=65 if [ $# -eq "$NO_ARGS" ] # Script invoked with no command-line args? then echo "Usage: `basename $0` File.log" exit $OPTERROR # Exit and explain usage, if no argument(s) given. fi logFile=$1 egrep 'Packet processed in [\.0-9]* seconds' $logFile |\ awk 'BEGIN {print " date sz"} {print s++ " " $1 "::" $2 " " $11}' > data R --vanilla --no-save --slave <