As noted by others, please place your code snippets inside [CODE]...[/CODE]
tags (not QUOTE tags), for better readability. You may type those yourself or click the "
#" button in the edit controls.
In your
for loop, $var is expanded as a string, not evaluated as a range specification. Similarly, your assignments, t1-10 are just strings and do not generate the ranges.
You need to rethink completely how that works.
As your loop always begins at 1, maybe you should pass it a limit value instead and perhaps use a while loop which breaks when the limit s reached.
Either way, I would refer you to
man bash Compound commands for a better understanding of how those loop constructs actually work.