read

Shell builtin for retrieving data from stdin. More information: https://manned.org/read.1p.

read variable

read -a array

read -n character_count variable

read -d new_delimiter variable

read -r variable

read -p "Enter your input here: " variable

read -s variable

while read line; do echo "$line"; done