![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Increment date in 'for' loop? | SunnyK | Shell Programming and Scripting | 4 | 10-30-2007 06:12 AM |
| Infinite Loop in Autosys while running a shell script, Manual run is fine | sharmagaurav_2k | Shell Programming and Scripting | 2 | 09-04-2007 08:20 AM |
| pick the bug the server enters an infinite loop | arjunjag | High Level Programming | 3 | 07-19-2007 01:53 AM |
| ls command in infinite Loop | umakant | SUN Solaris | 3 | 07-17-2007 01:25 AM |
| high priority thread contains an infinite loop | rvan | High Level Programming | 0 | 02-14-2007 09:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Quote:
Code:
#!/bin/sh i=1 while [ $i -le 5 ] do welcome $i times; echo "value of i is...$i" i='expr $i + 1' done exit 0 |
|
||||
|
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 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|