aboutsummaryrefslogtreecommitdiff
path: root/fichiers/scripts/greaterthan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fichiers/scripts/greaterthan.sh')
-rw-r--r--fichiers/scripts/greaterthan.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/fichiers/scripts/greaterthan.sh b/fichiers/scripts/greaterthan.sh
new file mode 100644
index 0000000..e79921e
--- /dev/null
+++ b/fichiers/scripts/greaterthan.sh
@@ -0,0 +1,11 @@
1#!/bin/bash
2if [ $1 -gt 10 ]
3then
4 echo "$1 est supérieur à 10"
5 if [ $1 -gt 100 ]
6 then
7 echo "et $1 est même supérieur à 100!"
8 fi
9else
10 echo "Il faut aller au-dessus de 10 pour avoir une réponse!"
11fi