May 21, 2003 #1 rvarman IS-IT--Management Apr 24, 2003 91 FR Is it possible to use loop for 1 to n times. for x in a b c works. but upto n times? Thanks
May 21, 2003 #2 cruel Programmer Aug 6, 2001 131 you would need to use while or until condition and increment the count variable within the loop. try this: while (( counter < 11 )) do echo $counter processes ... (( counter = counter + 1) done Upvote 0 Downvote
you would need to use while or until condition and increment the count variable within the loop. try this: while (( counter < 11 )) do echo $counter processes ... (( counter = counter + 1) done
May 22, 2003 Thread starter #3 rvarman IS-IT--Management Apr 24, 2003 91 FR OK, it works fine Thanks Upvote 0 Downvote