Reputation: 29693
#!/bin/ksh
#########################
for i in {1..30} ;do
echo $i
done
output is:
{1..30}
What is wrong in my code?
Upvotes: 6
Views: 40878
Reputation: 14955
Alternatively you can switch to a while construction:
i=1
while (( i <= 30 ))
do
echo $i
(( i+=1 ))
done
Upvotes: 3