read's Examples

read is a shell command used to take input from the user.
 

read -p "Enter your name: " name
echo "Hello, $name!"

Reads input from the user (used in shell scripts).

read name
echo "Hello, $name!"

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us