Posted By

ramisedhom on 12/17/09


Bash loop

Versions (?)

Loop through range of numbers sequence

 / Published in: Bash

  1. i=0;
  2. while [ $i -lt 10 ];
  3. do echo $i;
  4. let i=$i+1;
  5. done

Report this snippet  


RSS Icon Subscribe to comments
Posted By: tm on December 18, 2009

for bash (not sh):

for (( i=0; i

You need to login to post a comment.