Kolam Ayer MakersLinux Foundations

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.