PER=`echo "\`cat $USAGE\`/\`cat $LIMIT\`" | bc`
The ouput of the above is this:
> ./quota_report.sh
Quota Report for FM_group
Current data usage is: 132120576
Quota limit is set to: 98712344
Percentage of Data to Quota Limit is: 0%
PER=`echo "\`cat $USAGE\`/\`cat...
Jamisar
This the latest output.
> ./quota_report.sh
(standard_in) 1: illegal character: Quota Report for FM_group
Current data usage is: 132120576
Quota limit is set to: 98712344
Percentage of Data to Quota Limit is: %
I think the illegal character it is referring to is the one to remove...
Thanks for your time, Jamisar. I have tried your suggestion and it did not work, but we are getting close :) Following is the output.
> ./quota_report.sh
File 98712344/132120576*100 is unavailable.
Quota Report for FM_group
Current data usage is: 132120576
Quota limit is set to: 98712344...
Folks
I have extracted some raw data from our servers and wish to do some simple arithmetic to it. The end result that I wish to get is
1. The amount of data that is presently used.
2. The amount allocated to them
3. The % of data that is used of allocated space.
I can extract the first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.