I have a report which contains the following:
Count Value %
47 [ ] 69.12
18 [0 ] 26.47
3 [ 0] 4.41
I want to grep the total on the bottom [ ] brackets and store in a variable. However this may have a different figure everyday.
To read the [ 0] i do:
MATCH4=`grep "\[ 0\]" x.report.rpt | nawk '{print $1}'`
but how do i look for a number i.e. [ 3] , [ 10], [ 100] to get:
echo $MATCH4 - 3
echo $MATCH4 - 10
echo $MATCH4 - 100
etc...
---------- Post updated at 05:11 PM ---------- Previous update was at 05:10 PM ----------
[/COLOR]please disregard i wrote the post wrong i have since resolved it thanks