Read the user inputs and execute the script
Example1:
echo -n "Please type your required info"
read info
echo "You're required information is: $info"
Example2:
read -p "Please type your required info" info
echo "You're required information is: $info""
Example and Example2 both gives the same but, in the example1 there is no read -p
Example2 : read -p --> it will ask a query and assigned to var
No comments:
Post a Comment