# for



#### 1ere syntaxe:

```bash
for variable in liste_valeurs
    do instruction(s)
done
```

#### 2eme syntaxe:

```bash
for ((e1;e2;e3))
    do instruction(s)
done
```



### Exemples:

Parcourir les arguments passés au script:

```bash
for i in "$@"
do
 echo "$i"
done
```



```bash
for ((i=0 ; 10 - $i ; i++))
    do echo $i
done
```