Question: This works on bash

```
for i in {1..5}; do echo $i; done

```

the out put is
1
2
3
4
5
But on android shell
the output is 
{1..5}

Answer: 
Have you tried,

```
for ((i=1; i<=5; i++)) do echo $i; done

```

**Edit-**

or you can use sequence,

```
for i in `seq 1 5`; do echo $i; done

```
If your shell is sh then use the following command:

```
for i in `seq 1 5`; do echo $i; done

```

**Edit**

You probably dont have the `seq` program. Try this command instead:

```
i=1; while [ $i -le 5 ] ; do echo $i; i=`expr $i + 1`; done

```