![]() |
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 |
| a simple loop in csh | dsstamps | UNIX for Dummies Questions & Answers | 1 | 05-22-2008 03:03 AM |
| simple while loop | ali560045 | Shell Programming and Scripting | 10 | 12-26-2007 10:44 AM |
| simple for loop | ali560045 | Shell Programming and Scripting | 3 | 12-17-2007 01:39 AM |
| Simple loop query | kutz13 | UNIX for Dummies Questions & Answers | 2 | 07-17-2007 03:13 PM |
| Simple while loop question | Brokeback | Shell Programming and Scripting | 3 | 07-21-2006 09:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
a simple while loop
Hallo everyone
I might just be being dumb, but I am using the BASH shell and cannot get the following script to work: x=0 while [ $x -lt 10 ] do echo $x x=´echo "$x + 1" | bc´ done Can anybody help me out. I am just get a repeating output saying: bc: command not found 0 + 1: command not found Any suggestions would be helpful ![]() Last edited by syno; 04-07-2006 at 07:21 PM.. Reason: Incorrect spelling |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|