Quote:
Originally Posted by aleunix
These attempt failed:
for i in {$1.. $2}
|
{ .. } is a bash-ism not found in ksh.
Quote:
for ((i=$1; i <= $2 ; i++))
|
The
(( )) should contain an arithmetic expression, rather than a command list.
Quote:
now i'm using that approach:
i=$1
while [ "$i" -le $2 ]
do
echo $i
let "i+=1"
done
I haven't check on Linux ...
|
I checked and it works.