the read command is used to get value to store in variable from the keyboard.
read varname1
read $a
the following example : write a shell script to enter first name and last name and display it.
echo "Enter Your First Name:"
read $fname
echo "Enter Your Last Name:"
read $lname
echo "Welcome - $fname $lname"