![]() |
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 |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using variables created sequentially in a loop while still inside of the loop [bash] | DeCoTwc | Shell Programming and Scripting | 2 | 06-23-2009 04:59 PM |
| Is there a better way I could have run this loop. (For loop with two variables) | DeCoTwc | Shell Programming and Scripting | 2 | 03-27-2009 02:07 AM |
| while loop inside while loop | panknil | Shell Programming and Scripting | 0 | 01-07-2008 12:49 PM |
| rsh and for loop | newbee2005 | Shell Programming and Scripting | 4 | 09-16-2005 09:46 AM |
| how to get the similar function in while loop or for loop | trynew | Shell Programming and Scripting | 3 | 06-17-2002 11:09 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with Loop
Hi,
I'm a new user of UNIX and have a problem with the for loop. I tried to write this for the sake of an exersice: !#/bin/ksh for in in 1 2 3 4 5 do echo "Welcome $i" done However, the computer says: '/test.txt: line 3: syntax error near unexpected token `do '/test.txt: line 3: `do Any help will be greatly appreciated! |
|
|||||
|
Bumping up posts or double posting is not permitted in these forums.
Please read the rules, which you agreed to when you registered, if you have not already done so. You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future Thank You. The UNIX and Linux Forums. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|