Mar 2, 2002 #1 revit Programmer Oct 27, 2001 36 IL I want to run a program several times , for example some thing like that: for i=1 to 200 run program input${i}.txt $i > out$(i+1).txt done (i is an argument to the program) how do i write it correctly? thanks
I want to run a program several times , for example some thing like that: for i=1 to 200 run program input${i}.txt $i > out$(i+1).txt done (i is an argument to the program) how do i write it correctly? thanks
Mar 3, 2002 #2 mingis Programmer Jan 23, 2002 475 LT for((ii=1, jj=ii+1; ii<200; ii++, jj++)); do program input$ii.txt $ii > out$jj.txt done its a bash script, i don't know for another shells. Upvote 0 Downvote
for((ii=1, jj=ii+1; ii<200; ii++, jj++)); do program input$ii.txt $ii > out$jj.txt done its a bash script, i don't know for another shells.