The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
the given code goes in infinite loop and does not increment variable i
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
the given code goes in infinite loop and does not increment variable i
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
12-26-2007
mrityunjay22
Registered User
Join Date: Dec 2007
Posts: 4
Quote:
Originally Posted by
rinku
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
mrityunjay22
View Public Profile
Find all posts by mrityunjay22
Find mrityunjay22's past nominations received
Find mrityunjay22's present nominations given