You've already forked scripts-random
Add first scripts
This commit is contained in:
20
01_bash/pregunta.sh
Executable file
20
01_bash/pregunta.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo "Hola $(whoami)"
|
||||
|
||||
while true; do
|
||||
read -rp "dime si o no (s/n) " respuesta
|
||||
|
||||
case $respuesta in
|
||||
[sS])
|
||||
echo "La respuesta es sí"
|
||||
break
|
||||
;;
|
||||
[Nn])
|
||||
echo "La respuesta es No"
|
||||
exit
|
||||
;;
|
||||
*) echo "Que me estas container" ;;
|
||||
esac
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user