Examples (8)
Store data that you type from the keyboard
read variableStore each of the next lines you enter as values of an array
read -a arraySpecify the number of maximum characters to be read
read -n character_count variableAssign multiple values to multiple variables
read <<< "The surname is Bond" _ variable1 _ variable2Do not let backslash (`\`) act as an escape character
read -r variableDisplay a prompt before the input
read -p "Enter your input here: " variableDo not echo typed characters (silent mode)
read -s variablemade by @shridhargupta | data from tldr-pages