Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a program

Status
Not open for further replies.

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

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top