The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
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-06-2007
ithirak17 ithirak17 is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 13
Thumbs up problem in arithmetic operations

hello all,
i am having a variable with a value of 0000010000 and if i add the variable with some no:

suppose
i=0000010000
n=`expr $i + 1`
echo $n

the output i am reciving is 10001 .it deletes all the zeros
but i need result as 0000010001..
please help me...


thanks in advance......