May 21, 2003 #1 rvarman IS-IT--Management Joined Apr 24, 2003 Messages 91 Location 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 Joined Aug 6, 2001 Messages 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 Joined Apr 24, 2003 Messages 91 Location FR OK, it works fine Thanks Upvote 0 Downvote