Which command is used for making the scripts interactive?

Answer: c
Explanation: read command is used for making scripts interactive. It is used for taking input from the user. Input supplied from the keyboard is entered into the variable used with the read command. For example,
Code:
#!/bin/sh                
# emp.sh
echo ”enter your name”
read Uname                  //read input from the user
echo $Uname                // display input entered by the user
 

Tìm kiếm

Back
Top