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

Join Date: Jun 2007
Location: Beijing China
Posts: 1,092
wrong format

HI,

There are two typos for you i think.
First,
5 ] not 5]
Second,
` not '


Code:
i=1;
while [ $i -le 5 ] 
do
echo "welcome $i times"
i=`expr $i + 1`
done