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: 
If your sequence isn't too large, you can just list out the values of interest. So in the default Android ADB shell:

```
for i in 1 2 3; do echo $i; done

Returns:
1
2
3

```

or:

```
for i in 5 11 7; do echo $i; done

Returns:
5
11
7

```

or even:

```
for i in apple orange banana; do echo $i; done

Returns:
apple
orange
banana

```
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

```