LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   [c shell] simple for loop (https://www.linuxquestions.org/questions/programming-9/%5Bc-shell%5D-simple-for-loop-236389/)

saiz66 09-28-2004 06:54 PM

[c shell] simple for loop
 
How can I write a for loop in c shell???

Code:

for(i=0; i<=NR; i++)  print x[i]
it's not working!

michaelk 09-28-2004 07:02 PM

The c shell per my shell programming book does not have for loops. Instead you can use a while loop. i.e.


All times are GMT -5. The time now is 10:34 AM.