The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-11-2008
vsmurali vsmurali is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 5
Question 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