Last active
September 15, 2021 07:37
-
-
Save Hullaballo2001/1c9af77b8728698c6619b254cc2aafb9 to your computer and use it in GitHub Desktop.
first script ever
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Quel shell on utilise | |
#!/bin/bash | |
# Prompt username | |
read -p 'Quel est ton nom, étranger ?' -t 10 nom | |
# Si pas de reponse dans les 10 sec, on prend le $user | |
if [ -z $nom ] | |
then nom=$USER | |
fi | |
#Afficher msg poli sur une nouvelle ligne | |
echo -e "\nBonjour $nom !" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ajouté le $ devant USER ^^ merci max