← Linux and the Command Line
Lesson 40 of 51 · 5 XP
Warm-up: read and echo warm-up
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
read name reads an input line into a variable. You get the value with $:
read name
echo "Hello, $name!"
Task. Read a name and print Hello, name!.
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.