Tyleo-Dev-ShellScripting-Ol.../test.sh
2024-02-18 22:29:57 +01:00

20 lines
283 B
Bash
Executable file

#!/bin/bash
echo "On commence"
echo
echo -n "Entrer la lettre A, B ou C : "
read var
if [[ $var = A ]]
then
echo A
elif [[ $var = B ]]
then
echo B
elif [[ $var = C ]]
then
echo C
elif [[ $var = "" ]]
then
echo "empty input"
elif [[ $var = * ]]; then
echo "$var is incorrect"
fi