read
Use
read -r name
What It Does
read stores a line from stdin in a variable.
Practice
Prompt first with printf, then read the response.
Watch Out
Use -r so backslashes are read literally.
Linux Foundationsread -r name
read stores a line from stdin in a variable.
Prompt first with printf, then read the response.
Use -r so backslashes are read literally.