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 02-09-2004
preetikate preetikate is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 13
Computung Percentage

I wish to find % used using shell variables
and am using the following

USED=`expr $1\* 100 / $2`;

But this does not take decimal portion of $1 .
How to resolve?