ajout 8/ 9/
This commit is contained in:
parent
b47f121eae
commit
9a15ab7ff0
4 changed files with 35 additions and 0 deletions
0
STOP
Normal file
0
STOP
Normal file
9
monshell3.sh
Executable file
9
monshell3.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
nombre=100
|
||||
|
||||
until [[ $nombre -eq 0 ]]
|
||||
do
|
||||
echo $nombre
|
||||
nombre=$((nombre -1))
|
||||
done
|
13
until2.sh
Executable file
13
until2.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
var=1
|
||||
|
||||
until [[ var -ne 1 ]]
|
||||
do
|
||||
echo "Texte"
|
||||
sleep 2
|
||||
if [ -e STOP ]
|
||||
then
|
||||
var=0
|
||||
fi
|
||||
done
|
13
while.sh
Normal file
13
while.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
var=1
|
||||
|
||||
while [[ var -eq 1 ]]
|
||||
do
|
||||
echo "Texte"
|
||||
sleep 2
|
||||
if [ ! -e GO ]
|
||||
then
|
||||
var=0
|
||||
fi
|
||||
done
|
Loading…
Reference in a new issue