How to remove extraneous character
Hi,
I am trying to capture the server load and email me automatically.
This is how it goes
svrload=`uptime|awk '{ print $11 }'`
Now this returns a value say "1.39,".
How do i strip the "," from the returned value and convert this into a whole number to compare with a threshold?
Thanks
Murali
|