ksh scripting, For loop
{1..30}
belongs to bash
.
Use this:
for((i=1;i<=30;i++)); do
echo $i
done
Alternatively you can switch to a while construction:
i=1
while (( i <= 30 ))
do
echo $i
(( i+=1 ))
done
{1..30}
belongs to bash
.
Use this:
for((i=1;i<=30;i++)); do
echo $i
done
Alternatively you can switch to a while construction:
i=1
while (( i <= 30 ))
do
echo $i
(( i+=1 ))
done