Bash Scripting - User Input
Identify the error in this script snippet:
read -p Enter your age: age echo "You are $age years old."
read -p Enter your age: age echo "You are $age years old."
read -p syntax-p must be enclosed in quotes to be treated as a single string.read -p Enter your age: age without quotes around "Enter your age:", causing a syntax error.-p [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions