scripts_grundkurs/Labb2/inmatning.sh

11 lines
191 B
Bash
Executable File

#!/bin/bash
#Definiera Name
declare Namn
read -n 20 -t 8 -p "Vad heter du? " Name
Name=${Name:="Secret"} # Definiera Name till Hemligt om ingen input
printf "Du heter: $Name\n\n"
exit 0