Complete the code to read user input into a variable named 'name'.
read [1]The read command stores the input into the variable you specify. Here, name is the variable to hold the input.
Complete the code to prompt the user with 'Enter your age:' before reading input.
read -p "Enter your age: " [1]
The -p option shows a prompt message. The variable age will store the user's input.
Fix the error in the code to correctly read input into 'color'.
read [1]When reading input, use the variable name without a dollar sign. Using $color tries to read into the value of the variable, which is incorrect.
Fill both blanks to read input into 'username' and then print a greeting.
read [1] echo "Hello, $[2]!"
The read command stores input into username. Then echo prints a greeting using the same variable.
Fill all three blanks to read a number, check if it is greater than 10, and print a message.
read [1] if [ $[2] [3] 10 ]; then echo "Number is greater than 10" fi
First, read input into number. Then check if $number is greater than 10 using -gt. If true, print the message.