![]() |
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 |
| while loop inside while loop | panknil | Shell Programming and Scripting | 0 | 01-07-2008 12:49 PM |
| sed in a for loop | marwan | UNIX for Dummies Questions & Answers | 6 | 06-30-2007 05:41 PM |
| while loop help | bobo | UNIX for Dummies Questions & Answers | 4 | 01-31-2007 05:56 AM |
| Endless loop - Fork function failed? | cdunavent | Shell Programming and Scripting | 3 | 01-31-2002 01:12 AM |
| Menu function stuck in a loop? | darthur | UNIX for Dummies Questions & Answers | 2 | 12-14-2001 04:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
how to get the similar function in while loop or for loop
Dear all
How to write the shell script for the following statement: (C programming) for (i=0;i<30;i++) { if i=1 continue *skip this number (To do function here....) ... } similar statement in while loop.... I wrote the script in sh shell: i=0 while [ $i -ng 30 ] do if [ $i -eq 1 ] then continue fi (To do function here....) i=$1+1 done Unlucky, I can't get the correct result, can anyone help me? Best regards |
|
||||
|
Thanks for your replay and implementation!!!
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|