the following gives me 5 hi:
for i in {1..5} ;
do
echo hi $i
done
but when i do the following with variable, it wont:
num=5
for i in {1..$num} ;
echo hihi $i
done
and i tried put some " " or or ' ' around, but it still doesnt give me 5 hi, please give me some advice. the result return is {1..$num}, so please tell me how to set up a proper for situation with variable. thanks.