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: 
```
i=0; while [ $(($i)) -le 5 ]; do i=$(($i + 1)); echo $i; done;

```

Tested on adb shell in Galaxy Tab 4 7" -- Thanks to Lynch for most of the answer. 'expr fails in default shell.
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

```