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 -->
  #6 (permalink)  
Old 12-26-2007
mrityunjay22 mrityunjay22 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 4
Quote:
Originally Posted by rinku View Post
Please try to do it. I think it will increament the value of i.

#!/bin/sh

i=0
while [ $i -le 5 ]
do
echo "value of i is...$i"
i=`expr $i + 1`

done
thanks its working