in reply to Extracting data from a messy file (slow performance)
remove one external call to wcif [ `echo $line | grep "vmstat 2 60" | wc -l` -eq 1 ]
the same goes for setting 'stat=1'. Do it in one loop.if [ `echo $line | grep -c "vmstat 2 60"` -eq 1 ]
|
|---|