Bash Scripting - User Input
Which of these is the correct syntax to prompt the user and read their input into a variable named
name?name?read usage with prompt-p option with read shows a prompt before waiting for input.read -p "Enter your name: " name is correct.-p = D [OK]read -p to prompt and read input [OK]input instead of read15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions